Mercurial > public > mercurial-scm > hg-stable
diff tests/test-verify-repo-operations.py @ 53031:e705fec4a03f stable
branching: merging with 7.0 changes
Since 6.9.3 was made after 7.0rc0 we need to deal with more branching than
usual.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 05 Mar 2025 23:02:19 +0100 |
parents | 3e84e001b6c1 |
children |
line wrap: on
line diff
--- a/tests/test-verify-repo-operations.py Wed Mar 05 22:33:11 2025 +0100 +++ b/tests/test-verify-repo-operations.py Wed Mar 05 23:02:19 2025 +0100 @@ -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: @@ -210,7 +210,7 @@ stderr=devnull, ) rewriter.communicate("yes") - with open(path, 'r') as i: + with open(path) as i: ttest = i.read() e = None @@ -233,7 +233,7 @@ "", ) o.write(l + os.linesep) - with open(tf, 'r') as r: + with open(tf) as r: t = r.read() assert ext not in t, t output = subprocess.check_output( @@ -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: