Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions trio/tests/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ def test_socket_has_some_reexports():
assert tsocket.ntohs == stdlib_socket.ntohs


def test_all_constants_reexported():
trio_tsocket_exports = set(dir(tsocket))

for name in dir(stdlib_socket):
if name.isupper() and name[0] != "_":
stdlib_constant = name
assert stdlib_constant in trio_tsocket_exports


################################################################
# name resolution
################################################################
Expand Down