Skip to content

Commit a5f218f

Browse files
authored
Fix stubtest custom_typeshed_dir regression (#13656)
Fixes #13654, caused by #13629
1 parent 216a45b commit a5f218f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/stubtest.py

+2
Original file line numberDiff line numberDiff line change
@@ -1597,6 +1597,8 @@ def test_stubs(args: _Arguments, use_builtins_fixtures: bool = False) -> int:
15971597
options = Options()
15981598
options.incremental = False
15991599
options.custom_typeshed_dir = args.custom_typeshed_dir
1600+
if options.custom_typeshed_dir:
1601+
options.abs_custom_typeshed_dir = os.path.abspath(args.custom_typeshed_dir)
16001602
options.config_file = args.mypy_config_file
16011603
options.use_builtins_fixtures = use_builtins_fixtures
16021604

0 commit comments

Comments
 (0)