Skip to content

Commit 6c8d66c

Browse files
committed
Fix doctest on Windows
1 parent 4b109e3 commit 6c8d66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/config/expand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _find_module(
223223
>>> tmp = getfixture('tmpdir')
224224
>>> _ = tmp.ensure("a/b/c.py")
225225
>>> _ = tmp.ensure("a/b/d/__init__.py")
226-
>>> r = lambda x: x.replace(str(tmp), "tmp")
226+
>>> r = lambda x: x.replace(str(tmp), "tmp").replace(os.sep, "/")
227227
>>> r(_find_module("a.b.c", None, tmp))
228228
'tmp/a/b/c.py'
229229
>>> r(_find_module("f.g.h", {"": "1", "f": "2", "f.g": "3", "f.g.h": "a/b/d"}, tmp))

0 commit comments

Comments
 (0)