Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ T
Class
T
Lib/test/test_math.py:1042–1043 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1040
1041
# Verify tuple subclasses are allowed
1042
class
T(tuple):
1043
pass
1044
self.assertEqual(dist(T((1, 2, 3)), ((4, 2, -1))), 5.0)
1045
1046
# Test handling of bad arguments
Callers
4
test_inputtypes
Method · 0.70
SomeEnum
Class · 0.70
test_name_conflicts
Method · 0.70
testDist
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_inputtypes
Method · 0.56
test_name_conflicts
Method · 0.56
testDist
Method · 0.56