File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,10 @@ def interp_errlog(self):
28
28
29
29
def err_lineno (self , a ):
30
30
strings = [x .__unicode__ () for x in a ]
31
- print ('looking for lineno' )
32
31
for line in reversed (strings ):
33
32
clean_line = remove_ansi (line )
34
- print (clean_line )
35
33
m = re .search (r'line (\d+)[,]' , clean_line )
36
34
if m :
37
- print ('found!' , m .group (1 ))
38
35
return int (m .group (1 ))
39
36
return None
40
37
@@ -150,8 +147,9 @@ def test_runsource_unicode_autoencode_and_noencode(self):
150
147
i , a = self .interp_errlog ()
151
148
i .runsource (u'#encoding: utf-8\n abc' ,
152
149
filename = 'x.py' , encode = encode )
153
- self .assertIn ('SyntaxError: encoding' ,
154
- '' .join ('' .join (remove_ansi (x .__unicode__ ()) for x in a )))
150
+ self .assertIn ('SyntaxError:' ,
151
+ '' .join ('' .join (remove_ansi (x .__unicode__ ())
152
+ for x in a )))
155
153
156
154
@unittest .skipIf (py3 , "encode only does anything in Python 2" )
157
155
def test_runsource_unicode_encode (self ):
You can’t perform that action at this time.
0 commit comments