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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 11 months ago
Right Patch Set: Created 5 years, 6 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_cmd_line.py ('k') | Lib/test/test_compileall.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 """ 1 """
2 Test cases for codeop.py 2 Test cases for codeop.py
3 Nick Mathewson 3 Nick Mathewson
4 """ 4 """
5 import unittest 5 import unittest
6 from test.support import run_unittest, is_jython 6 from test.support import run_unittest, is_jython
7 7
8 from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT 8 from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT
9 import io 9 import io
10 10
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename, 295 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
296 compile("a = 1\n", "def", 'single').co_filename) 296 compile("a = 1\n", "def", 'single').co_filename)
297 297
298 298
299 def test_main(): 299 def test_main():
300 run_unittest(CodeopTests) 300 run_unittest(CodeopTests)
301 301
302 302
303 if __name__ == "__main__": 303 if __name__ == "__main__":
304 test_main() 304 test_main()
LEFTRIGHT

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