Skip to content

Commit feffea5

Browse files
committed
fix windows import check
1 parent a9e62f5 commit feffea5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/test_imports.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@ def tracking_import(module, locals=None, globals=None, fromlist=None,
5353
}
5454

5555
if WIN:
56-
ALLOWED_IMPORTS.update(["ctypes", "ctypes.wintypes", "msvcrt", "time"])
56+
ALLOWED_IMPORTS.update(
57+
{
58+
"ctypes",
59+
"ctypes._layout",
60+
"ctypes.wintypes",
61+
"msvcrt",
62+
"time",
63+
}
64+
)
5765

5866

5967
def test_light_imports():

0 commit comments

Comments
 (0)