summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_install.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-25 22:03:22 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-25 22:03:22 (GMT)
commitc686167298830f551010e998e6442282eb42baed (patch)
tree1228e239794443cedb8d3012656ae3b6a7769df8 /Lib/distutils/tests/test_install.py
parente1eef41a18301dad262193a8074060cda0964990 (diff)
downloadcpython-c686167298830f551010e998e6442282eb42baed.zip
cpython-c686167298830f551010e998e6442282eb42baed.tar.gz
cpython-c686167298830f551010e998e6442282eb42baed.tar.bz2
Turn two ifs into one in the code I commited a few days ago
Diffstat (limited to 'Lib/distutils/tests/test_install.py')
-rw-r--r--Lib/distutils/tests/test_install.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py
index 5c105af..dfc46b1 100644
--- a/Lib/distutils/tests/test_install.py
+++ b/Lib/distutils/tests/test_install.py
@@ -20,9 +20,8 @@ from distutils.tests import support
def _make_ext_name(modname):
- if os.name == 'nt':
- if sys.executable.endswith('_d.exe'):
- modname += '_d'
+ if os.name == 'nt' and sys.executable.endswith('_d.exe'):
+ modname += '_d'
return modname + sysconfig.get_config_var('SO')