diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_positional_only_arg.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/test_positional_only_arg.py b/Lib/test/test_positional_only_arg.py index d4d259ef26..0aaad84cb3 100644 --- a/Lib/test/test_positional_only_arg.py +++ b/Lib/test/test_positional_only_arg.py @@ -398,6 +398,20 @@ class PositionalOnlyTestCase(unittest.TestCase): gen = f() self.assertEqual(next(gen), (1, 2)) + def test_super(self): + + sentinel = object() + + class A: + def method(self): + return sentinel + + class C(A): + def method(self, /): + return super().method() + + self.assertEqual(C().method(), sentinel) + if __name__ == "__main__": unittest.main() |