Skip to content

Commit

Permalink
fix test failing from absolute path change
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Nov 22, 2020
1 parent 896709e commit e8ba3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,7 @@ def find_module_and_diagnose(manager: BuildManager,
and not options.use_builtins_fixtures
and not options.custom_typeshed_dir):
raise CompileError([
'mypy: "%s" shadows library module "%s"' % (result, id),
'mypy: "%s" shadows library module "%s"' % (os.path.relpath(result), id),
'note: A user-defined top-level module with name "%s" is not supported' % id
])
return (result, follow_imports)
Expand Down

0 comments on commit e8ba3f1

Please sign in to comment.