diff --git a/test/test_pymbolic.py b/test/test_pymbolic.py index 89b23ef10ad3206a18fefa218637687e093dc273..8ed651bbb92e89c243b6d12064b509fd0a3222bf 100644 --- a/test/test_pymbolic.py +++ b/test/test_pymbolic.py @@ -597,7 +597,7 @@ def test_latex_mapper(): "-output-directory=%s" % latex_dir, tex_file_path], universal_newlines=True) - except FileNotFoundError: + except OSError: # FIXME: Should be FileNotFoundError on Py3 pytest.skip("latex command not found") except subprocess.CalledProcessError as err: assert False, str(err.output)