diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-10-16 14:57:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-16 14:57:01 (GMT) |
commit | 02d26c4bef3ad0f9c97e47993a7fa67898842e5c (patch) | |
tree | c9308ffad65984cc2e897501c68f24e453e61fe2 /Lib/test/test_subclassinit.py | |
parent | a1ac5590e0f8fe008e5562d22edab65d0c1c5507 (diff) | |
download | cpython-02d26c4bef3ad0f9c97e47993a7fa67898842e5c.zip cpython-02d26c4bef3ad0f9c97e47993a7fa67898842e5c.tar.gz cpython-02d26c4bef3ad0f9c97e47993a7fa67898842e5c.tar.bz2 |
Enable ruff on several more files in `Lib/test` (#110929)
Diffstat (limited to 'Lib/test/test_subclassinit.py')
-rw-r--r-- | Lib/test/test_subclassinit.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_subclassinit.py b/Lib/test/test_subclassinit.py index 310473a..0d32aa5 100644 --- a/Lib/test/test_subclassinit.py +++ b/Lib/test/test_subclassinit.py @@ -230,7 +230,7 @@ class Test(unittest.TestCase): super().__init__(name, bases, namespace) with self.assertRaises(TypeError): - class MyClass(metaclass=MyMeta, otherarg=1): + class MyClass2(metaclass=MyMeta, otherarg=1): pass class MyMeta(type): @@ -241,10 +241,10 @@ class Test(unittest.TestCase): super().__init__(name, bases, namespace) self.otherarg = otherarg - class MyClass(metaclass=MyMeta, otherarg=1): + class MyClass3(metaclass=MyMeta, otherarg=1): pass - self.assertEqual(MyClass.otherarg, 1) + self.assertEqual(MyClass3.otherarg, 1) def test_errors_changed_pep487(self): # These tests failed before Python 3.6, PEP 487 @@ -263,10 +263,10 @@ class Test(unittest.TestCase): self.otherarg = otherarg return self - class MyClass(metaclass=MyMeta, otherarg=1): + class MyClass2(metaclass=MyMeta, otherarg=1): pass - self.assertEqual(MyClass.otherarg, 1) + self.assertEqual(MyClass2.otherarg, 1) def test_type(self): t = type('NewClass', (object,), {}) |