Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(168842)

Delta Between Two Patch Sets: Lib/test/test_cmd_line.py

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 6 years ago
Right Patch Set: Created 5 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_capi.py ('k') | Lib/test/test_codeop.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Tests invocation of the interpreter with various command line arguments 1 # Tests invocation of the interpreter with various command line arguments
2 # Most tests are executed with environment variables ignored 2 # Most tests are executed with environment variables ignored
3 # See test_cmd_line_script.py for testing of script execution 3 # See test_cmd_line_script.py for testing of script execution
4 4
5 import test.support, unittest 5 import test.support, unittest
6 import os 6 import os
7 import shutil 7 import shutil
8 import sys 8 import sys
9 import subprocess 9 import subprocess
10 import tempfile 10 import tempfile
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 out = subprocess.check_output([sys.executable, "-I", main], 464 out = subprocess.check_output([sys.executable, "-I", main],
465 cwd=tmpdir) 465 cwd=tmpdir)
466 self.assertEqual(out.strip(), b"ok") 466 self.assertEqual(out.strip(), b"ok")
467 467
468 def test_main(): 468 def test_main():
469 test.support.run_unittest(CmdLineTest) 469 test.support.run_unittest(CmdLineTest)
470 test.support.reap_children() 470 test.support.reap_children()
471 471
472 if __name__ == "__main__": 472 if __name__ == "__main__":
473 test_main() 473 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+