[Python-checkins] cpython: #27904: fix distutils tests.
r.david.murray
python-checkins at python.org
Wed Aug 31 11:40:15 EDT 2016
https://hg.python.org/cpython/rev/5f6dac170b9b
changeset: 102968:5f6dac170b9b
user: R David Murray <rdmurray at bitdance.com>
date: Wed Aug 31 11:39:35 2016 -0400
summary:
#27904: fix distutils tests.
Patch by Ville Skyttä.
files:
Lib/distutils/tests/test_build_py.py | 3 ++-
Lib/distutils/tests/test_install_lib.py | 3 ++-
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
--- a/Lib/distutils/tests/test_build_py.py
+++ b/Lib/distutils/tests/test_build_py.py
@@ -168,7 +168,8 @@
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
--- a/Lib/distutils/tests/test_install_lib.py
+++ b/Lib/distutils/tests/test_install_lib.py
@@ -104,7 +104,8 @@
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():
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list