File: 0002-Fix-tests-on-i386.patch

package info (click to toggle)
pymap3d 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: python: 3,742; ruby: 105; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 23 Aug 2025 06:44:16 +0000
Subject: Fix tests on i386

Releax taerget accuracy from 1e-9 to 3e-9.

Forwarded: not-needed
---
 src/pymap3d/tests/test_dca.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pymap3d/tests/test_dca.py b/src/pymap3d/tests/test_dca.py
index 7c6060a..3296944 100644
--- a/src/pymap3d/tests/test_dca.py
+++ b/src/pymap3d/tests/test_dca.py
@@ -40,7 +40,7 @@ def test_ecef_dca(ecef, dca, heading):
     lat0, lon0, h0 = 12.0, 15.0, 30.0
 
     assert pm.dca2ecef(*dca, lat0, lon0, h0, heading) == pytest.approx(ecef)
-    assert pm.ecef2dca(*ecef, lat0, lon0, h0, heading) == pytest.approx(dca, abs=1e-9)
+    assert pm.ecef2dca(*ecef, lat0, lon0, h0, heading) == pytest.approx(dca, abs=3e-9)
 
 
 def test_geodetic_dca():