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

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

Issue 27095: Simplify MAKE_FUNCTION
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 3 years, 3 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
LEFTRIGHT
1 # Minimal tests for dis module 1 # Minimal tests for dis module
2 2
3 from test.support import captured_stdout 3 from test.support import captured_stdout
4 from test.bytecode_helper import BytecodeTestCase 4 from test.bytecode_helper import BytecodeTestCase
5 import difflib 5 import difflib
6 import unittest 6 import unittest
7 import sys 7 import sys
8 import dis 8 import dis
9 import io 9 import io
10 import re 10 import re
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 894
895 self.assertEqual(b.current_offset, tb.tb_lasti) 895 self.assertEqual(b.current_offset, tb.tb_lasti)
896 896
897 def test_from_traceback_dis(self): 897 def test_from_traceback_dis(self):
898 tb = get_tb() 898 tb = get_tb()
899 b = dis.Bytecode.from_traceback(tb) 899 b = dis.Bytecode.from_traceback(tb)
900 self.assertEqual(b.dis(), dis_traceback) 900 self.assertEqual(b.dis(), dis_traceback)
901 901
902 if __name__ == "__main__": 902 if __name__ == "__main__":
903 unittest.main() 903 unittest.main()
LEFTRIGHT

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