We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46036b0 commit 52f247cCopy full SHA for 52f247c
numpydoc/tests/test_docscrape.py
@@ -272,12 +272,16 @@ def dummy_func(arg):
272
try:
273
SphinxClassDoc(Dummy)
274
except ValueError as e:
275
- assert_true("test_section_twice.<locals>.Dummy" in str(e))
+ # python 3 version or python 2 version
276
+ assert_true("test_section_twice.<locals>.Dummy" in str(e)
277
+ or 'test_docscrape.Dummy' in str(e))
278
279
280
SphinxFunctionDoc(dummy_func)
281
- assert_true("test_section_twice.<locals>.dummy_func" in str(e))
282
283
+ assert_true("test_section_twice.<locals>.dummy_func" in str(e)
284
+ or 'function dummy_func' in str(e))
285
286
287
def test_notes():
0 commit comments