Bug report
This test was added a long time ago as a part of 4b00307
But, it is broken right now for several reasons:
- It does not assert anything at all, so it passes when it really should not
- It uses
print keyword from Python2, which really results in
======================================================================
FAIL: test_error (test.test_compileall.EncodingTest.test_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/sobolev/Desktop/cpython2/Lib/test/test_compileall.py", line 516, in test_error
self.assertEqual(buffer.getvalue(), '')
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'Listing \'/var/folders/vw/n7c5l8m94zb072h[327 chars]\n\n' != ''
- Listing '/var/folders/vw/n7c5l8m94zb072h487pnlpzm0000gn/T/tmpeolpbxlq'...
- Compiling '/var/folders/vw/n7c5l8m94zb072h487pnlpzm0000gn/T/tmpeolpbxlq/_test.py'...
- *** File "/var/folders/vw/n7c5l8m94zb072h487pnlpzm0000gn/T/tmpeolpbxlq/_test.py", line 2
- print u"€"
- ^^^^^^^^^^
- SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
-
----------------------------------------------------------------------
But, we cannot see this failure, because the result of compile_all is ignored. And sys.stdout is not checked as well.
I will send a PR with the fix.
Linked PRs
Bug report
This test was added a long time ago as a part of 4b00307
But, it is broken right now for several reasons:
printkeyword from Python2, which really results inBut, we cannot see this failure, because the result of
compile_allis ignored. Andsys.stdoutis not checked as well.I will send a PR with the fix.
Linked PRs
test_compileall.EncodingTest#117390test_compileall.EncodingTest(GH-117390) #118603test_compileall.EncodingTest(GH-117390) #118604