Skip to content

Commit 4b18e6e

Browse files
committed
use stderr as the assertion error message
1 parent b660d09 commit 4b18e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/test/test_subprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ def test_encoding_warning(self):
17431743
cp = subprocess.run([sys.executable, "-Xwarn_default_encoding", "-c", code],
17441744
capture_output=True)
17451745
lines = cp.stderr.splitlines()
1746-
self.assertEqual(len(lines), 2)
1746+
self.assertEqual(len(lines), 2, lines)
17471747
self.assertTrue(lines[0].startswith(b"<string>:3: EncodingWarning: "))
17481748
self.assertTrue(lines[1].startswith(b"<string>:4: EncodingWarning: "))
17491749

0 commit comments

Comments
 (0)