Show More
@@ -204,7 +204,7 b' def test_line_split():' | |||||
204 | # was at the end of part1. So an empty part2 represents someone hitting |
|
204 | # was at the end of part1. So an empty part2 represents someone hitting | |
205 | # tab at the end of the line, the most common case. |
|
205 | # tab at the end of the line, the most common case. | |
206 | t = [ |
|
206 | t = [ | |
207 | ("run some/scrip", "", "some/scrip"), |
|
207 | ("run some/script", "", "some/script"), | |
208 | ("run scripts/er", "ror.py foo", "scripts/er"), |
|
208 | ("run scripts/er", "ror.py foo", "scripts/er"), | |
209 | ("echo $HOM", "", "HOM"), |
|
209 | ("echo $HOM", "", "HOM"), | |
210 | ("print sys.pa", "", "sys.pa"), |
|
210 | ("print sys.pa", "", "sys.pa"), |
@@ -140,7 +140,7 b' def test_image_filename_defaults():' | |||||
140 | format="badformat", |
|
140 | format="badformat", | |
141 | embed=True, |
|
141 | embed=True, | |
142 | ) |
|
142 | ) | |
143 |
# check both |
|
143 | # check both paths to allow packages to test at build and install time | |
144 | imgfile = os.path.join(tpath, 'core/tests/2x2.png') |
|
144 | imgfile = os.path.join(tpath, 'core/tests/2x2.png') | |
145 | img = display.Image(filename=imgfile) |
|
145 | img = display.Image(filename=imgfile) | |
146 | assert "png" == img.format |
|
146 | assert "png" == img.format |
@@ -660,7 +660,7 b' class TestSystemRaw(ExitCodeChecks):' | |||||
660 | @mock.patch('os.system', side_effect=KeyboardInterrupt) |
|
660 | @mock.patch('os.system', side_effect=KeyboardInterrupt) | |
661 | def test_control_c(self, *mocks): |
|
661 | def test_control_c(self, *mocks): | |
662 | try: |
|
662 | try: | |
663 | self.system("sleep 1 # wont happen") |
|
663 | self.system("sleep 1 # won't happen") | |
664 | except KeyboardInterrupt: # pragma: no cove |
|
664 | except KeyboardInterrupt: # pragma: no cove | |
665 | self.fail( |
|
665 | self.fail( | |
666 | "system call should intercept " |
|
666 | "system call should intercept " |
@@ -579,7 +579,7 b' def test_run_tb():' | |||||
579 | def test_multiprocessing_run(): |
|
579 | def test_multiprocessing_run(): | |
580 | """Set we can run mutiprocesgin without messing up up main namespace |
|
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 |
|
582 | Note that import `nose.tools as nt` modify the values | |
583 | sys.module['__mp_main__'] so we need to temporarily set it to None to test |
|
583 | sys.module['__mp_main__'] so we need to temporarily set it to None to test | |
584 | the issue. |
|
584 | the issue. | |
585 | """ |
|
585 | """ |
@@ -158,14 +158,14 b' class NestedGenExprTestCase(unittest.TestCase):' | |||||
158 |
|
158 | |||
159 |
|
159 | |||
160 | indentationerror_file = """if True: |
|
160 | indentationerror_file = """if True: | |
161 |
zoo |
|
161 | zoom() | |
162 | """ |
|
162 | """ | |
163 |
|
163 | |||
164 | class IndentationErrorTest(unittest.TestCase): |
|
164 | class IndentationErrorTest(unittest.TestCase): | |
165 | def test_indentationerror_shows_line(self): |
|
165 | def test_indentationerror_shows_line(self): | |
166 | # See issue gh-2398 |
|
166 | # See issue gh-2398 | |
167 | with tt.AssertPrints("IndentationError"): |
|
167 | with tt.AssertPrints("IndentationError"): | |
168 |
with tt.AssertPrints("zoo |
|
168 | with tt.AssertPrints("zoom()", suppress=False): | |
169 | ip.run_cell(indentationerror_file) |
|
169 | ip.run_cell(indentationerror_file) | |
170 |
|
170 | |||
171 | with TemporaryDirectory() as td: |
|
171 | with TemporaryDirectory() as td: | |
@@ -174,7 +174,7 b' class IndentationErrorTest(unittest.TestCase):' | |||||
174 | f.write(indentationerror_file) |
|
174 | f.write(indentationerror_file) | |
175 |
|
175 | |||
176 | with tt.AssertPrints("IndentationError"): |
|
176 | with tt.AssertPrints("IndentationError"): | |
177 |
with tt.AssertPrints("zoo |
|
177 | with tt.AssertPrints("zoom()", suppress=False): | |
178 | ip.magic('run %s' % fname) |
|
178 | ip.magic('run %s' % fname) | |
179 |
|
179 | |||
180 | @skip_without("pandas") |
|
180 | @skip_without("pandas") |
General Comments 0
You need to be logged in to leave comments.
Login now