Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_dict_vs_other
Method
test_dict_vs_other
testing/python/approx.py:615–616 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
613
assert {
"a"
: 1.0,
"b"
: 1} != pytest.approx({
"a"
: 1.0,
"b"
: None})
614
615
def
test_dict_vs_other(self):
616
assert 1 != approx({
"a"
: 0})
617
618
def
test_numpy_array(self):
619
np = pytest.importorskip(
"numpy"
)
Callers
nothing calls this directly
Calls
1
approx
Function · 0.90
Tested by
no test coverage detected