1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
From: Ole Streicher <olebole@debian.org>
Date: Fri, 15 Sep 2023 09:41:51 +0200
Subject: Increase rtol in test_intersection_case01 and
test_estimate_pixel_scale_ratio
This fixes an FTBFS on i386
---
drizzle/tests/test_overlap_calc.py | 4 ++--
drizzle/tests/test_utils.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drizzle/tests/test_overlap_calc.py b/drizzle/tests/test_overlap_calc.py
index 3c405c4..5f757d7 100644
--- a/drizzle/tests/test_overlap_calc.py
+++ b/drizzle/tests/test_overlap_calc.py
@@ -259,7 +259,7 @@ def test_intersection_case01():
cp = clip_polygon(p, wnd)
- assert _is_poly_eq(cp, cp_ref)
+ assert _is_poly_eq(cp, cp_ref, 1e-10)
def test_intersection_case02():
@@ -283,4 +283,4 @@ def test_intersection_case02():
cp = clip_polygon(p, wnd)
- assert _is_poly_eq(cp, cp_ref)
+ assert _is_poly_eq(cp, cp_ref, 1e-10)
diff --git a/drizzle/tests/test_utils.py b/drizzle/tests/test_utils.py
index f29e969..0fbad3e 100644
--- a/drizzle/tests/test_utils.py
+++ b/drizzle/tests/test_utils.py
@@ -161,7 +161,7 @@ def test_disable_gwcs_bbox():
def test_estimate_pixel_scale_ratio():
w = wcs_from_file("j8bt06nyq_flt.fits", ext=1)
pscale = estimate_pixel_scale_ratio(w, w, w.wcs.crpix, (0, 0))
- assert abs(pscale - 0.9999999916964737) < 1.0e-9
+ assert abs(pscale - 0.9999999916964737) < 3.0e-9
def test_estimate_pixel_scale_no_refpix():
|