Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_tuple_vs_other
Method
test_tuple_vs_other
testing/python/approx.py:583–584 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
581
assert (1, 2) != approx((1, 2, 3))
582
583
def
test_tuple_vs_other(self):
584
assert 1 != approx((1,))
585
586
def
test_dict(self):
587
actual = {
"a"
: 1 + 1e-7,
"b"
: 2 + 1e-8}
Callers
nothing calls this directly
Calls
1
approx
Function · 0.90
Tested by
no test coverage detected