pytype_test: Don't mix up stdlib and stub packages starting with stdlib. (#7609)

This should fix the pytype_test failure in
https://github.com/python/typeshed/pull/7608.
This commit is contained in:
Rebecca Chen authored and GitHub committed 2022-04-08 13:01:37 -07:00
1 parent 79c654ef43
commit f1856a384e
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ def _get_relative(filename: str) -> str:
top = 0
for d in TYPESHED_SUBDIRS:
try:
top = filename.index(d)
top = filename.index(d + os.path.sep)
except ValueError:
continue
else: