Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplified pathlike_with_arguments test
  • Loading branch information
Phaqui committed Nov 8, 2017
commit b444e401c6c1c17bc8a63bf4cb8af658bbce52d9
7 changes: 2 additions & 5 deletions Lib/test/test_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,12 +1501,9 @@ def __fspath__(self):
return sys.executable

path = Path()
args = [path, '-c', 'import sys; sys.exit(57)']

if mswindows:
res = subprocess.run(args)
else:
res = subprocess.run(args)
args = [path, '-c', 'import sys; sys.exit(57)']
res = subprocess.run(args)

self.assertEqual(res.returncode, 57)

Expand Down