diff options
author | Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com> | 2023-05-01 22:14:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 22:14:49 (GMT) |
commit | 605f8785db26c3acdde90cfd4ecebb208362a1b8 (patch) | |
tree | 715a3335cc54ce2c673988bb5f2614c8c36e8754 /Lib | |
parent | 80b714835d6f5e1cb8fbc486f9575b5eee9f007e (diff) | |
download | cpython-605f8785db26c3acdde90cfd4ecebb208362a1b8.zip cpython-605f8785db26c3acdde90cfd4ecebb208362a1b8.tar.gz cpython-605f8785db26c3acdde90cfd4ecebb208362a1b8.tar.bz2 |
gh-104057: Fix direct invocation of test_super (#104064)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_super.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py index ed773a3..698ab48 100644 --- a/Lib/test/test_super.py +++ b/Lib/test/test_super.py @@ -359,7 +359,7 @@ class TestSuper(unittest.TestCase): def method(self): return super().msg - with patch("test.test_super.super", MySuper) as m: + with patch(f"{__name__}.super", MySuper) as m: self.assertEqual(C().method(), "super super") def test_shadowed_dynamic_two_arg(self): @@ -373,7 +373,7 @@ class TestSuper(unittest.TestCase): def method(self): return super(1, 2).msg - with patch("test.test_super.super", MySuper) as m: + with patch(f"{__name__}.super", MySuper) as m: self.assertEqual(C().method(), "super super") self.assertEqual(call_args, [(1, 2)]) |