Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Some more tests
  • Loading branch information
JelleZijlstra committed May 10, 2024
commit 3b7eefacc763a949b211737023df8e9723b49ed3
6 changes: 6 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10241,6 +10241,12 @@ def test_constructor(self):
def test_repr(self):
self.assertEqual(repr(NoDefault), 'typing.NoDefault')

def test_doc(self):
self.assertIsInstance(NoDefault.__doc__, str)
Comment thread
JelleZijlstra marked this conversation as resolved.

def test_class(self):
self.assertIs(NoDefault.__class__, type(NoDefault))

def test_no_call(self):
with self.assertRaises(TypeError):
NoDefault()
Expand Down