summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-27 18:04:26 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-27 18:04:26 (GMT)
commitf011881d7d48f5ad529ce1b4e8da313a62526350 (patch)
treedf8d5813abaea34519d7fbc72f108c1e7f3d7384 /Lib/distutils
parentef0a44c629b84036edee5b4513159299993a7524 (diff)
parent26f116651030c77c93f0a98026baf7812963a30c (diff)
downloadcpython-f011881d7d48f5ad529ce1b4e8da313a62526350.zip
cpython-f011881d7d48f5ad529ce1b4e8da313a62526350.tar.gz
cpython-f011881d7d48f5ad529ce1b4e8da313a62526350.tar.bz2
Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
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 090eacf..065a6a2 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -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))