Fix test_oserror on older Pythons

This commit is contained in:
Florian Bruhin 2017-09-15 19:08:28 +02:00
parent 543bc3bcaa
commit d901bee88e

View File

@ -221,7 +221,7 @@ class TestConfigPy:
def test_oserror(self, tmpdir): def test_oserror(self, tmpdir):
with pytest.raises(configexc.ConfigFileErrors) as excinfo: with pytest.raises(configexc.ConfigFileErrors) as excinfo:
configfiles.read_config_py(tmpdir / 'foo') configfiles.read_config_py(str(tmpdir / 'foo'))
assert len(excinfo.value.errors) == 1 assert len(excinfo.value.errors) == 1
error = excinfo.value.errors[0] error = excinfo.value.errors[0]