From 75523b282db49b760c46c92414c2b9419826f04f Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Fri, 7 Feb 2020 16:23:32 -0800 Subject: [PATCH] skip without new helper --- pandas/tests/io/test_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 404f5a477187b..bf03a19762128 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -141,7 +141,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext): pytest.importorskip(module) path = os.path.join(HERE, "data", "does_not_exist." + fn_ext) - with tm.external_error_raised(error_class): + with pytest.raises(error_class): reader(path) @pytest.mark.parametrize( @@ -167,7 +167,7 @@ def test_read_expands_user_home_dir( path = os.path.join("~", "does_not_exist." + fn_ext) monkeypatch.setattr(icom, "_expand_user", lambda x: os.path.join("foo", x)) - with tm.external_error_raised(error_class): + with pytest.raises(error_class): reader(path) @pytest.mark.parametrize(