diff --git a/Lib/popen2.py b/Lib/popen2.py index 3f84bf9e852..54543bed0f8 100644 --- a/Lib/popen2.py +++ b/Lib/popen2.py @@ -213,7 +213,7 @@ def _test(): raise ValueError("wrote %r read %r" % (teststr, got)) got = e.read() if got: - raise ValueError("unexected %r on stderr" % (got,)) + raise ValueError("unexpected %r on stderr" % (got,)) for inst in _active[:]: inst.wait() if _active: diff --git a/Lib/test/test_popen2.py b/Lib/test/test_popen2.py index 2a15a206e61..18142ecc13c 100644 --- a/Lib/test/test_popen2.py +++ b/Lib/test/test_popen2.py @@ -62,7 +62,7 @@ def _test(): raise ValueError("wrote %r read %r" % (teststr, got)) got = e.read() if got: - raise ValueError("unexected %r on stderr" % (got,)) + raise ValueError("unexpected %r on stderr" % (got,)) for inst in popen2._active[:]: inst.wait() if popen2._active: