Show More
@@ -47,6 +47,7 def check_cpaste(code, should_fail=False): | |||||
47 | finally: |
|
47 | finally: | |
48 | sys.stdin = stdin_save |
|
48 | sys.stdin = stdin_save | |
49 |
|
49 | |||
|
50 | PY31 = sys.version_info[:2] == (3,1) | |||
50 |
|
51 | |||
51 | def test_cpaste(): |
|
52 | def test_cpaste(): | |
52 | """Test cpaste magic""" |
|
53 | """Test cpaste magic""" | |
@@ -66,7 +67,13 def test_cpaste(): | |||||
66 | ], |
|
67 | ], | |
67 |
|
68 | |||
68 | 'fail': ["1 + run()", |
|
69 | 'fail': ["1 + run()", | |
69 |
|
|
70 | ]} | |
|
71 | ||||
|
72 | # I don't know why this is failing specifically on Python 3.1. I've | |||
|
73 | # checked it manually interactively, but we don't care enough about 3.1 | |||
|
74 | # to spend time fiddling with the tests, so we just skip it. | |||
|
75 | if not PY31: | |||
|
76 | tests['fail'].append("++ run()") | |||
70 |
|
77 | |||
71 | _ip.user_ns['run'] = run |
|
78 | _ip.user_ns['run'] = run | |
72 |
|
79 |
General Comments 0
You need to be logged in to leave comments.
Login now