mirror of
https://github.com/python/cpython.git
synced 2026-06-04 16:50:51 +00:00
gh-149410: Test that typing.NoDefault is final (#149411)
This commit is contained in:
parent
70bd1c2dd2
commit
bad9296fb0
1 changed files with 4 additions and 0 deletions
|
|
@ -11131,6 +11131,10 @@ def test_no_attributes(self):
|
|||
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__."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue