We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_inspect
1 parent a35e870 commit 38c4eebCopy full SHA for 38c4eeb
Lib/test/test_inspect/test_inspect.py
@@ -4385,8 +4385,14 @@ def __init__(self, a):
4385
4386
self.assertEqual(self.signature(C, follow_wrapped=False),
4387
varargs_signature)
4388
- self.assertEqual(self.signature(C.__new__, follow_wrapped=False),
4389
- varargs_signature)
+ if support.MISSING_C_DOCSTRINGS:
+ self.assertRaisesRegex(
4390
+ ValueError, "no signature found",
4391
+ self.signature, C.__new__, follow_wrapped=False,
4392
+ )
4393
+ else:
4394
+ self.assertEqual(self.signature(C.__new__, follow_wrapped=False),
4395
+ varargs_signature)
4396
4397
def test_signature_on_class_with_wrapped_new(self):
4398
with self.subTest('FunctionType'):
0 commit comments