diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py index e20d9b8..fe078f9 100644 --- a/IPython/core/tests/test_completer.py +++ b/IPython/core/tests/test_completer.py @@ -204,7 +204,7 @@ def test_line_split(): # was at the end of part1. So an empty part2 represents someone hitting # tab at the end of the line, the most common case. t = [ - ("run some/scrip", "", "some/scrip"), + ("run some/script", "", "some/script"), ("run scripts/er", "ror.py foo", "scripts/er"), ("echo $HOM", "", "HOM"), ("print sys.pa", "", "sys.pa"), diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py index 2abd8cb..b7c5253 100644 --- a/IPython/core/tests/test_display.py +++ b/IPython/core/tests/test_display.py @@ -140,7 +140,7 @@ def test_image_filename_defaults(): format="badformat", embed=True, ) - # check boths paths to allow packages to test at build and install time + # check both paths to allow packages to test at build and install time imgfile = os.path.join(tpath, 'core/tests/2x2.png') img = display.Image(filename=imgfile) assert "png" == img.format diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index 1d8b782..1a8e5d0 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -660,7 +660,7 @@ class TestSystemRaw(ExitCodeChecks): @mock.patch('os.system', side_effect=KeyboardInterrupt) def test_control_c(self, *mocks): try: - self.system("sleep 1 # wont happen") + self.system("sleep 1 # won't happen") except KeyboardInterrupt: # pragma: no cove self.fail( "system call should intercept " diff --git a/IPython/core/tests/test_run.py b/IPython/core/tests/test_run.py index 9687786..23337b3 100644 --- a/IPython/core/tests/test_run.py +++ b/IPython/core/tests/test_run.py @@ -579,7 +579,7 @@ def test_run_tb(): def test_multiprocessing_run(): """Set we can run mutiprocesgin without messing up up main namespace - Note that import `nose.tools as nt` mdify the value s + Note that import `nose.tools as nt` modify the values sys.module['__mp_main__'] so we need to temporarily set it to None to test the issue. """ diff --git a/IPython/core/tests/test_ultratb.py b/IPython/core/tests/test_ultratb.py index 8ed7387..c2e72e4 100644 --- a/IPython/core/tests/test_ultratb.py +++ b/IPython/core/tests/test_ultratb.py @@ -158,14 +158,14 @@ class NestedGenExprTestCase(unittest.TestCase): indentationerror_file = """if True: -zoon() +zoom() """ class IndentationErrorTest(unittest.TestCase): def test_indentationerror_shows_line(self): # See issue gh-2398 with tt.AssertPrints("IndentationError"): - with tt.AssertPrints("zoon()", suppress=False): + with tt.AssertPrints("zoom()", suppress=False): ip.run_cell(indentationerror_file) with TemporaryDirectory() as td: @@ -174,7 +174,7 @@ class IndentationErrorTest(unittest.TestCase): f.write(indentationerror_file) with tt.AssertPrints("IndentationError"): - with tt.AssertPrints("zoon()", suppress=False): + with tt.AssertPrints("zoom()", suppress=False): ip.magic('run %s' % fname) @skip_without("pandas")