Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_list_wrong_len
Method
test_list_wrong_len
testing/python/approx.py:565–567 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
563
assert actual == approx(expected)
564
565
def
test_list_wrong_len(self):
566
assert [1, 2] != approx([1])
567
assert [1, 2] != approx([1, 2, 3])
568
569
def
test_tuple(self):
570
actual = (1 + 1e-7, 2 + 1e-8)
Callers
nothing calls this directly
Calls
1
approx
Function · 0.90
Tested by
no test coverage detected