Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Andrew Kreimer
- Thu, 03 Oct 2024 12:39:40
Show More
IPython/core/tests/test_completer.py
0
+1
-1
@@
-204,7
+204,7
def test_line_split():
204
204
# was at the end of part1. So an empty part2 represents someone hitting
205
205
# tab at the end of the line, the most common case.
206
206
t = [
207
( "run some/scrip" , "" , "some/scrip" ),
207
( "run some/script " , "" , "some/script " ),
208
208
( "run scripts/er" , "ror.py foo" , "scripts/er" ),
209
209
( "echo $HOM" , "" , "HOM" ),
210
210
( "print sys.pa" , "" , "sys.pa" ),
IPython/core/tests/test_display.py
0
+1
-1
@@
-140,7
+140,7
def test_image_filename_defaults():
140
140
format = "badformat" ,
141
141
embed = True ,
142
142
)
143
# check boths paths to allow packages to test at build and install time
143
# check both paths to allow packages to test at build and install time
144
144
imgfile = os . path . join ( tpath , 'core/tests/2x2.png' )
145
145
img = display . Image ( filename = imgfile )
146
146
assert "png" == img . format
IPython/core/tests/test_interactiveshell.py
0
+1
-1
@@
-660,7
+660,7
class TestSystemRaw(ExitCodeChecks):
660
660
@mock . patch ( 'os.system' , side_effect = KeyboardInterrupt )
661
661
def test_control_c ( self , * mocks ):
662
662
try :
663
self . system ( "sleep 1 # wont happen" )
663
self . system ( "sleep 1 # won' t happen" )
664
664
except KeyboardInterrupt : # pragma: no cove
665
665
self . fail (
666
666
"system call should intercept "
IPython/core/tests/test_run.py
0
+1
-1
@@
-579,7
+579,7
def test_run_tb():
579
579
def test_multiprocessing_run ():
580
580
"""Set we can run mutiprocesgin without messing up up main namespace
581
581
582
Note that import `nose.tools as nt` mdify the value s
582
Note that import `nose.tools as nt` mo dify the values
583
583
sys.module['__mp_main__'] so we need to temporarily set it to None to test
584
584
the issue.
585
585
"""
IPython/core/tests/test_ultratb.py
0
+3
-3
@@
-158,14
+158,14
class NestedGenExprTestCase(unittest.TestCase):
158
158
159
159
160
160
indentationerror_file = """if True:
161
zoon()
161
zoom ()
162
162
"""
163
163
164
164
class IndentationErrorTest ( unittest . TestCase ):
165
165
def test_indentationerror_shows_line ( self ):
166
166
# See issue gh-2398
167
167
with tt . AssertPrints ( "IndentationError" ):
168
with tt . AssertPrints ( "zoon()" , suppress = False ):
168
with tt . AssertPrints ( "zoom ()" , suppress = False ):
169
169
ip . run_cell ( indentationerror_file )
170
170
171
171
with TemporaryDirectory () as td :
@@
-174,7
+174,7
class IndentationErrorTest(unittest.TestCase):
174
174
f . write ( indentationerror_file )
175
175
176
176
with tt . AssertPrints ( "IndentationError" ):
177
with tt . AssertPrints ( "zoon()" , suppress = False ):
177
with tt . AssertPrints ( "zoom ()" , suppress = False ):
178
178
ip . magic ( 'run %s ' % fname )
179
179
180
180
@skip_without ( "pandas" )
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages