mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
[3.14] gh-149410: Test that typing.NoDefault is final (GH-149411) (#149419)
gh-149410: Test that `typing.NoDefault` is final (GH-149411)
(cherry picked from commit bad9296fb0)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
committed by
GitHub
parent
37803c4365
commit
dd41f93320
@@ -10859,6 +10859,10 @@ class NoDefaultTests(BaseTestCase):
|
||||
with self.assertRaises(AttributeError):
|
||||
type(NoDefault).foo
|
||||
|
||||
def test_no_subclassing(self):
|
||||
with self.assertRaises(TypeError):
|
||||
class Test(type(NoDefault)): ...
|
||||
|
||||
|
||||
class AllTests(BaseTestCase):
|
||||
"""Tests for __all__."""
|
||||
|
||||
Reference in New Issue
Block a user