summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorKirill Podoprigora <80244920+Eclips4@users.noreply.github.com>2023-05-02 01:14:49 +0300
committerGitHub <noreply@github.com>2023-05-01 16:14:49 -0600
commit605f8785db26c3acdde90cfd4ecebb208362a1b8 (patch)
tree715a3335cc54ce2c673988bb5f2614c8c36e8754 /Lib
parent80b714835d6f5e1cb8fbc486f9575b5eee9f007e (diff)
downloadcpython-git-605f8785db26c3acdde90cfd4ecebb208362a1b8.tar.gz
gh-104057: Fix direct invocation of test_super (#104064)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_super.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py
index ed773a3cff..698ab48f48 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)])