Skip to content

Commit

Permalink
test __module__
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 23, 2025
1 parent 3b04faa commit 5a17fdc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_util/test_util_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,20 @@ def test_is_invalid_builtin_class():
TracebackType,
WrapperDescriptorType,
}
# contextvars
assert Context.__module__ == '_contextvars'
assert ContextVar.__module__ == '_contextvars'
assert Token.__module__ == '_contextvars'
# pathlib
assert Path.__module__ == 'pathlib._local'
assert PosixPath.__module__ == 'pathlib._local'
assert PurePath.__module__ == 'pathlib._local'
assert PurePosixPath.__module__ == 'pathlib._local'
assert PureWindowsPath.__module__ == 'pathlib._local'
assert WindowsPath.__module__ == 'pathlib._local'
# struct
assert Struct.__module__ == '_struct'
# types
assert AsyncGeneratorType.__module__ == 'builtins'
assert BuiltinFunctionType.__module__ == 'builtins'
assert BuiltinMethodType.__module__ == 'builtins'
Expand Down

0 comments on commit 5a17fdc

Please sign in to comment.