summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-27 17:45:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-27 17:45:49 (GMT)
commit72121c6c302d0e177d3f738f51685e0664343ccc (patch)
tree9726a5cc30b27f6ba012b8be330d6b87f808f1c5 /Lib/distutils
parent6d3a8605a5f41cbd5ca9c56eefa2a1684f9fd692 (diff)
downloadcpython-72121c6c302d0e177d3f738f51685e0664343ccc.zip
cpython-72121c6c302d0e177d3f738f51685e0664343ccc.tar.gz
cpython-72121c6c302d0e177d3f738f51685e0664343ccc.tar.bz2
- Issue #17041: Fix testing when Python is configured with the
--without-doc-strings option.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_ext.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index b71cc98..f6a503b 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -77,8 +77,9 @@ class BuildExtTestCase(support.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 test_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))