diff tests/test-verify-repo-operations.py @ 52668:5cc8deb96b48

pyupgrade: modernize calls to superclass methods This is the `legacy` fixer in `pyupgrade`, with the loop yielding the offset of `yield` statements commented out.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 05 Jan 2025 22:23:31 -0500
parents 5713adc51f2a
children 3e84e001b6c1
line wrap: on
line diff
--- a/tests/test-verify-repo-operations.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/tests/test-verify-repo-operations.py	Sun Jan 05 22:23:31 2025 -0500
@@ -168,7 +168,7 @@
     committimes = Bundle('committimes')
 
     def __init__(self):
-        super(verifyingstatemachine, self).__init__()
+        super().__init__()
         self.repodir = os.path.join(testtmp, "repos")
         if os.path.exists(self.repodir):
             shutil.rmtree(self.repodir)
@@ -192,7 +192,7 @@
 
         We then test it in a number of other configurations, verifying that
         each passes the same test."""
-        super(verifyingstatemachine, self).teardown()
+        super().teardown()
         try:
             shutil.rmtree(self.repodir)
         except OSError:
@@ -255,7 +255,7 @@
 
     def execute_step(self, step):
         try:
-            return super(verifyingstatemachine, self).execute_step(step)
+            return super().execute_step(step)
         except (HypothesisException, KeyboardInterrupt):
             raise
         except Exception: