Skip to content

Commit 8890bb2

Browse files
committed
#27904: fix distutils tests.
Patch by Ville Skyttä.
1 parent dd917f8 commit 8890bb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Lib/distutils/tests/test_build_py.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def test_dont_write_bytecode(self):
168168
finally:
169169
sys.dont_write_bytecode = old_dont_write_bytecode
170170

171-
self.assertIn('byte-compiling is disabled', self.logs[0][1])
171+
self.assertIn('byte-compiling is disabled',
172+
self.logs[0][1] % self.logs[0][2])
172173

173174

174175
def test_suite():

Lib/distutils/tests/test_install_lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def test_dont_write_bytecode(self):
104104
finally:
105105
sys.dont_write_bytecode = old_dont_write_bytecode
106106

107-
self.assertIn('byte-compiling is disabled', self.logs[0][1])
107+
self.assertIn('byte-compiling is disabled',
108+
self.logs[0][1] % self.logs[0][2])
108109

109110

110111
def test_suite():

0 commit comments

Comments
 (0)