diff options
| author | Ethan Furman <ethan@stoneleaf.us> | 2022-07-18 20:22:52 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-18 20:22:52 (GMT) |
| commit | 73eab9f35ca17c7c3b813c717673934b0ab8ed64 (patch) | |
| tree | 187a3588908ea0173f543f38aacc3a29a1077a98 /Lib/test | |
| parent | 4b5360c7d5ad3c5452782ebd7e40f82cc32a39e1 (diff) | |
| download | cpython-73eab9f35ca17c7c3b813c717673934b0ab8ed64.zip cpython-73eab9f35ca17c7c3b813c717673934b0ab8ed64.tar.gz cpython-73eab9f35ca17c7c3b813c717673934b0ab8ed64.tar.bz2 | |
Revert "gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)" (#94985)
This reverts commit c20186c3972ff38577c4c5e32ca86748210983d2.
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_enum.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 69fba9a..bfab0bd 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -2646,6 +2646,7 @@ class TestSpecial(unittest.TestCase): self.assertEqual(Private._Private__corporal, 'Radar') self.assertEqual(Private._Private__major_, 'Hoolihan') + @unittest.skip("Accessing all values retained for performance reasons, see GH-93910") def test_exception_for_member_from_member_access(self): with self.assertRaisesRegex(AttributeError, "<enum .Di.> member has no attribute .NO."): class Di(Enum): @@ -2653,12 +2654,6 @@ class TestSpecial(unittest.TestCase): NO = 0 nope = Di.YES.NO - def test_no_exception_for_overridden_member_from_member_access(self): - class Di(Enum): - YES = 1 - NO = 0 - Di.YES.NO = Di.NO - nope = Di.YES.NO def test_dynamic_members_with_static_methods(self): # |
