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

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

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 4 months ago
Right Patch Set: Created 7 years, 4 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 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 """ 3 """
4 Test suite for PEP 380 implementation 4 Test suite for PEP 380 implementation
5 5
6 adapted from original tests written by Greg Ewing 6 adapted from original tests written by Greg Ewing
7 see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Pyt hon3.1.2-rev5.zip> 7 see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Pyt hon3.1.2-rev5.zip>
8 """ 8 """
9 9
10 import unittest 10 import unittest
11 import io 11 import io
12 import sys 12 import sys
13 import traceback 13 import traceback
14 import parser 14 import parser
15 15
16 from test.support import captured_stderr 16 from test.support import captured_stderr
17
18
19 class PEP380Test(unittest.TestCase):
20 pass
21
22 17
23 class TestPEP380Operation(unittest.TestCase): 18 class TestPEP380Operation(unittest.TestCase):
24 """ 19 """
25 Test semantics. 20 Test semantics.
26 """ 21 """
27 22
28 def test_delegation_of_initial_next_to_subgenerator(self): 23 def test_delegation_of_initial_next_to_subgenerator(self):
29 """ 24 """
30 Test delegation of initial next() call to subgenerator 25 Test delegation of initial next() call to subgenerator
31 """ 26 """
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 833
839 834
840 def test_main(): 835 def test_main():
841 from test import support 836 from test import support
842 test_classes = [TestPEP380Operation] 837 test_classes = [TestPEP380Operation]
843 support.run_unittest(*test_classes) 838 support.run_unittest(*test_classes)
844 839
845 840
846 if __name__ == '__main__': 841 if __name__ == '__main__':
847 test_main() 842 test_main()
LEFTRIGHT

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