Skip to content

Commit f98cd15

Browse files
committed
Fix typos
1 parent 00df491 commit f98cd15

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

IPython/core/tests/test_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_line_split():
204204
# was at the end of part1. So an empty part2 represents someone hitting
205205
# tab at the end of the line, the most common case.
206206
t = [
207-
("run some/scrip", "", "some/scrip"),
207+
("run some/script", "", "some/script"),
208208
("run scripts/er", "ror.py foo", "scripts/er"),
209209
("echo $HOM", "", "HOM"),
210210
("print sys.pa", "", "sys.pa"),

IPython/core/tests/test_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_image_filename_defaults():
140140
format="badformat",
141141
embed=True,
142142
)
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
144144
imgfile = os.path.join(tpath, 'core/tests/2x2.png')
145145
img = display.Image(filename=imgfile)
146146
assert "png" == img.format

IPython/core/tests/test_interactiveshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def test_1(self):
660660
@mock.patch('os.system', side_effect=KeyboardInterrupt)
661661
def test_control_c(self, *mocks):
662662
try:
663-
self.system("sleep 1 # wont happen")
663+
self.system("sleep 1 # won't happen")
664664
except KeyboardInterrupt: # pragma: no cove
665665
self.fail(
666666
"system call should intercept "

IPython/core/tests/test_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def test_run_tb():
579579
def test_multiprocessing_run():
580580
"""Set we can run mutiprocesgin without messing up up main namespace
581581
582-
Note that import `nose.tools as nt` mdify the value s
582+
Note that import `nose.tools as nt` modify the values
583583
sys.module['__mp_main__'] so we need to temporarily set it to None to test
584584
the issue.
585585
"""

IPython/core/tests/test_ultratb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ def foo(x):
158158

159159

160160
indentationerror_file = """if True:
161-
zoon()
161+
zoom()
162162
"""
163163

164164
class IndentationErrorTest(unittest.TestCase):
165165
def test_indentationerror_shows_line(self):
166166
# See issue gh-2398
167167
with tt.AssertPrints("IndentationError"):
168-
with tt.AssertPrints("zoon()", suppress=False):
168+
with tt.AssertPrints("zoom()", suppress=False):
169169
ip.run_cell(indentationerror_file)
170170

171171
with TemporaryDirectory() as td:
@@ -174,7 +174,7 @@ def test_indentationerror_shows_line(self):
174174
f.write(indentationerror_file)
175175

176176
with tt.AssertPrints("IndentationError"):
177-
with tt.AssertPrints("zoon()", suppress=False):
177+
with tt.AssertPrints("zoom()", suppress=False):
178178
ip.magic('run %s' % fname)
179179

180180
@skip_without("pandas")

0 commit comments

Comments
 (0)