From 8e6b72470bd7ce8a709b2538e4cd2becd16154ae Mon Sep 17 00:00:00 2001 From: lim Date: Mon, 21 May 2012 18:19:51 +0000 Subject: lim fixed tests that failed because of image de-compression on SVN git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16923 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4bf54e5d84f6f6984ce3ad70ed05b1e048de6f02 --- lib/test/test_intersection.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/test/test_intersection.py') diff --git a/lib/test/test_intersection.py b/lib/test/test_intersection.py index 81512d1..adb79f0 100644 --- a/lib/test/test_intersection.py +++ b/lib/test/test_intersection.py @@ -14,6 +14,7 @@ from numpy.testing import assert_array_almost_equal # LOCAL from sphere import polygon +from test_shared import resolve_imagename GRAPH_MODE = False ROOT_DIR = os.path.join(os.path.dirname(__file__), 'data') @@ -77,7 +78,9 @@ class intersection_test: @intersection_test(0, 90) def test1(): import pyfits - fits = pyfits.open(os.path.join(ROOT_DIR, '1904-66_TAN.fits')) + import os + + fits = pyfits.open(resolve_imagename(ROOT_DIR,'1904-66_TAN.fits')) header = fits[0].header poly1 = polygon.SphericalPolygon.from_wcs( @@ -99,7 +102,7 @@ def test2(): @intersection_test(0, 90) def test3(): import pyfits - fits = pyfits.open(os.path.join(ROOT_DIR, '1904-66_TAN.fits')) + fits = pyfits.open(resolve_imagename(ROOT_DIR, '1904-66_TAN.fits')) header = fits[0].header poly1 = polygon.SphericalPolygon.from_wcs( -- cgit