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

Delta Between Two Patch Sets: Lib/test/test_pep3120.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_pep247.py ('k') | Lib/test/test_pep380.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 # This file is marked as binary in the CVS, to prevent MacCVS from recoding it. 1 # This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
2 2
3 import unittest 3 import unittest
4 from test import support 4 from test import support
5 5
6 class PEP3120Test(unittest.TestCase): 6 class PEP3120Test(unittest.TestCase):
7 7
8 def test_pep3120(self): 8 def test_pep3120(self):
9 self.assertEqual( 9 self.assertEqual(
10 "Питон".encode("utf-8"), 10 "Питон".encode("utf-8"),
(...skipping 27 matching lines...) Expand all
38 ns = {} 38 ns = {}
39 exec(code, ns) 39 exec(code, ns)
40 self.assertEqual('Ç', ns['u']) 40 self.assertEqual('Ç', ns['u'])
41 41
42 42
43 def test_main(): 43 def test_main():
44 support.run_unittest(PEP3120Test, BuiltinCompileTests) 44 support.run_unittest(PEP3120Test, BuiltinCompileTests)
45 45
46 if __name__=="__main__": 46 if __name__=="__main__":
47 test_main() 47 test_main()
LEFTRIGHT

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