diff options
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index d12bcda..7a61493 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -354,14 +354,14 @@ class CodeInfoTests(unittest.TestCase): def test_code_info(self): self.maxDiff = 1000 for x, expected in self.test_pairs: - self.assertRegexpMatches(dis.code_info(x), expected) + self.assertRegex(dis.code_info(x), expected) def test_show_code(self): self.maxDiff = 1000 for x, expected in self.test_pairs: with captured_stdout() as output: dis.show_code(x) - self.assertRegexpMatches(output.getvalue(), expected+"\n") + self.assertRegex(output.getvalue(), expected+"\n") def test_main(): run_unittest(DisTests, CodeInfoTests) |