diff --git a/pandas/io/tests/test_common.py b/pandas/io/tests/test_common.py index cf5ec7d911051..5740944558a5d 100644 --- a/pandas/io/tests/test_common.py +++ b/pandas/io/tests/test_common.py @@ -105,7 +105,7 @@ def test_constructor_bad_file(self): msg = "The parameter is incorrect" err = OSError else: - msg = "Invalid argument" + msg = "[Errno 22]" err = mmap.error tm.assertRaisesRegexp(err, msg, common.MMapWrapper, non_file)