Fix test on windows

This commit is contained in:
Andras Schmelczer 2022-07-12 19:13:21 +02:00
parent 83a9bf3ee8
commit a1846a240e
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E

View file

@ -95,7 +95,9 @@ class ConfigFile(Mapping[str, str]):
value = next(v for v in values if v)
except StopIteration:
raise ParseError(
f"Cannot parse config file ({self._path.absolute()}), error at key `{key}`"
f"""Cannot parse config file ({
self._path.absolute()
}), error at key `{key}`"""
)
already_exists = key in self._key_values
@ -155,4 +157,4 @@ class ConfigFile(Mapping[str, str]):
return self._key_values.items()
def __repr__(self) -> str:
return f"{type(self).__name__}(path={self._path}) {self._key_values}"
return f"{type(self).__name__}(path={self._path.as_posix()}) {self._key_values}"