mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
This commit is contained in:
parent
6f02ea02c8
commit
9d0add0c7e
7 changed files with 54 additions and 20 deletions
|
|
@ -73,8 +73,9 @@ class BuildExtTestCase(TempdirManager,
|
|||
self.assertEqual(xx.foo(2, 5), 7)
|
||||
self.assertEqual(xx.foo(13,15), 28)
|
||||
self.assertEqual(xx.new().demo(), None)
|
||||
doc = 'This is a template module just for instruction.'
|
||||
self.assertEqual(xx.__doc__, doc)
|
||||
if support.HAVE_DOCSTRINGS:
|
||||
doc = 'This is a template module just for instruction.'
|
||||
self.assertEqual(xx.__doc__, doc)
|
||||
self.assertTrue(isinstance(xx.Null(), xx.Null))
|
||||
self.assertTrue(isinstance(xx.Str(), xx.Str))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue