Skip to content

Commit a3d83d9

Browse files
committed
pytest tolerance differs between OS
1 parent 48ad176 commit a3d83d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
2222
version = {attr = "pymap3d.__version__"}
2323

2424
[project.optional-dependencies]
25-
tests = ["pytest", "pytest-timeout"]
25+
tests = ["pytest"]
2626
lint = ["flake8", "flake8-bugbear", "flake8-builtins", "flake8-blind-except", "mypy",
2727
"types-python-dateutil", "types-requests"]
2828
coverage = ["pytest-cov"]

src/pymap3d/tests/test_dca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_ecef_dca(ecef, dca, heading):
4040
lat0, lon0, h0 = 12.0, 15.0, 30.0
4141

4242
assert pm.dca2ecef(*dca, lat0, lon0, h0, heading) == pytest.approx(ecef)
43-
assert pm.ecef2dca(*ecef, lat0, lon0, h0, heading) == pytest.approx(dca, rel=1e-9)
43+
assert pm.ecef2dca(*ecef, lat0, lon0, h0, heading) == pytest.approx(dca, abs=1e-9)
4444

4545

4646
def test_geodetic_dca():

0 commit comments

Comments
 (0)