Issue2418

classification
Title: test_chdir subprocess tests fail on Windows
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
Milestone:
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: jeff.allen Nosy List: jeff.allen
Priority: normal Keywords: test failure causes

Created on 2015-10-29.16:52:27 by jeff.allen, last changed 2018-03-22.07:33:23 by jeff.allen.

Messages
msg10405 (view) Author: Jeff Allen (jeff.allen) Date: 2015-10-29.16:52:27
This is most likely truncation of the command line passed to the sub-process. The subprocess resource must be enable in regrtest to evoke the relevant test cases.

>dist\bin\jython -m test.regrtest -u subprocess -v test_chdir
test_chdir
 ... 
test_popen (test.test_chdir.SubprocessTestCase) ...   File "<string>", line 1
    import
         ^
SyntaxError: mismatched input '\n\n' expecting NAME
ERROR
test_subprocess (test.test_chdir.SubprocessTestCase) ...   File "<string>", line 1
    import
         ^
SyntaxError: mismatched input '\n\n' expecting NAME
FAIL
test_system (test.test_chdir.SubprocessTestCase) ...   File "<string>", line 1
    import
         ^
SyntaxError: mismatched input '\n\n' expecting NAME
FAIL

...
----------------------------------------------------------------------
Ran 45 tests in 12.215s

FAILED (failures=2, errors=1)
msg11799 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-14.19:09:23
The extra quotes added here:
https://hg.python.org/jython/file/tip/Lib/test/test_chdir.py#l444
are the problem, presumably since subprocess became more conformant on Windows.
History
Date User Action Args
2018-03-22 07:33:23jeff.allensetpriority: normal
2018-03-14 19:09:23jeff.allensetassignee: jeff.allen
resolution: accepted
messages: + msg11799
2015-10-29 16:52:27jeff.allencreate