Skip to content

Commit

Permalink
Improve readability by using str
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed Jan 10, 2024
1 parent ae76b88 commit 1a2f4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def _importconftest(
if dirpath in path.parents or path == dirpath:
if mod in mods:
raise RuntimeError(
f"{conftestpath=} has already been loaded as the module {mod=}"
f"{str(conftestpath)=} has already been loaded as the module {mod=}"
)
mods.append(mod)
self.trace(f"loading conftestmodule {mod!r}")
Expand Down

0 comments on commit 1a2f4c1

Please sign in to comment.