summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-27 17:47:45 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-27 17:47:45 (GMT)
commit9d0add0c7e513a92ee4321aa5be70121c4c1e1e7 (patch)
treea61b0d0c5ee1c4c727bb55754b505cd59ecc0446 /Lib/distutils
parent6f02ea02c881e06029e8d44a5414682bc4b65fb8 (diff)
downloadcpython-9d0add0c7e513a92ee4321aa5be70121c4c1e1e7.zip
cpython-9d0add0c7e513a92ee4321aa5be70121c4c1e1e7.tar.gz
cpython-9d0add0c7e513a92ee4321aa5be70121c4c1e1e7.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))