File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
Nick Mathewson
4
4
"""
5
5
import unittest
6
- from test . support import is_jython
6
+ from test import support
7
7
8
8
from codeop import compile_command , PyCF_DONT_IMPLY_DEDENT
9
9
import io
10
10
11
- if is_jython :
11
+ if support . is_jython :
12
12
import sys
13
13
14
14
def unify_callables (d ):
@@ -21,7 +21,7 @@ class CodeopTests(unittest.TestCase):
21
21
22
22
def assertValid (self , str , symbol = 'single' ):
23
23
'''succeed iff str is a valid piece of code'''
24
- if is_jython :
24
+ if support . is_jython :
25
25
code = compile_command (str , "<input>" , symbol )
26
26
self .assertTrue (code )
27
27
if symbol == "single" :
@@ -60,7 +60,7 @@ def test_valid(self):
60
60
av = self .assertValid
61
61
62
62
# special case
63
- if not is_jython :
63
+ if not support . is_jython :
64
64
self .assertEqual (compile_command ("" ),
65
65
compile ("pass" , "<input>" , 'single' ,
66
66
PyCF_DONT_IMPLY_DEDENT ))
You can’t perform that action at this time.
0 commit comments