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 7e23d36 commit 86d198fCopy full SHA for 86d198f
Lib/test/test_inspect/test_inspect.py
@@ -4261,8 +4261,14 @@ def __init__(self, a):
4261
4262
self.assertEqual(self.signature(C, follow_wrapped=False),
4263
varargs_signature)
4264
- self.assertEqual(self.signature(C.__new__, follow_wrapped=False),
4265
- varargs_signature)
+ if support.MISSING_C_DOCSTRINGS:
+ self.assertRaisesRegex(
4266
+ ValueError, "no signature found",
4267
+ self.signature, C.__new__, follow_wrapped=False,
4268
+ )
4269
+ else:
4270
+ self.assertEqual(self.signature(C.__new__, follow_wrapped=False),
4271
+ varargs_signature)
4272
4273
def test_signature_on_class_with_wrapped_new(self):
4274
with self.subTest('FunctionType'):
0 commit comments