summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-08-31 15:39:35 (GMT)
committerR David Murray <rdmurray@bitdance.com>2016-08-31 15:39:35 (GMT)
commit8890bb22646d8207f5504ffbc258798e8cc328fa (patch)
treeda129b6c9a9e11d88df048c13fae87de331462df /Lib/distutils
parentdd917f84e3775596049e09746f32053c50b3d422 (diff)
downloadcpython-8890bb22646d8207f5504ffbc258798e8cc328fa.zip
cpython-8890bb22646d8207f5504ffbc258798e8cc328fa.tar.gz
cpython-8890bb22646d8207f5504ffbc258798e8cc328fa.tar.bz2
#27904: fix distutils tests.
Patch by Ville Skyttä.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_py.py3
-rw-r--r--Lib/distutils/tests/test_install_lib.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_py.py b/Lib/distutils/tests/test_build_py.py
index 18283dc..0712e92 100644
--- a/Lib/distutils/tests/test_build_py.py
+++ b/Lib/distutils/tests/test_build_py.py
@@ -168,7 +168,8 @@ class BuildPyTestCase(support.TempdirManager,
finally:
sys.dont_write_bytecode = old_dont_write_bytecode
- self.assertIn('byte-compiling is disabled', self.logs[0][1])
+ self.assertIn('byte-compiling is disabled',
+ self.logs[0][1] % self.logs[0][2])
def test_suite():
diff --git a/Lib/distutils/tests/test_install_lib.py b/Lib/distutils/tests/test_install_lib.py
index 5378aa8..fda6315 100644
--- a/Lib/distutils/tests/test_install_lib.py
+++ b/Lib/distutils/tests/test_install_lib.py
@@ -104,7 +104,8 @@ class InstallLibTestCase(support.TempdirManager,
finally:
sys.dont_write_bytecode = old_dont_write_bytecode
- self.assertIn('byte-compiling is disabled', self.logs[0][1])
+ self.assertIn('byte-compiling is disabled',
+ self.logs[0][1] % self.logs[0][2])
def test_suite():