Skip to content

Commit e8ba3f1

Browse files
author
hauntsaninja
committed
fix test failing from absolute path change
1 parent 896709e commit e8ba3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ def find_module_and_diagnose(manager: BuildManager,
23962396
and not options.use_builtins_fixtures
23972397
and not options.custom_typeshed_dir):
23982398
raise CompileError([
2399-
'mypy: "%s" shadows library module "%s"' % (result, id),
2399+
'mypy: "%s" shadows library module "%s"' % (os.path.relpath(result), id),
24002400
'note: A user-defined top-level module with name "%s" is not supported' % id
24012401
])
24022402
return (result, follow_imports)

0 commit comments

Comments
 (0)