From da253e9978f44b0341587ce4265f013cc44a9b52 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 16 Sep 2011 20:43:46 -0400 Subject: Modify test_ray_intersection to use __file__ to file location of test standard --- test/test_ray_intersection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_ray_intersection.py b/test/test_ray_intersection.py index 7d0c53c..ce364e0 100644 --- a/test/test_ray_intersection.py +++ b/test/test_ray_intersection.py @@ -15,7 +15,7 @@ class TestRayIntersection(unittest.TestCase): self.pos_gpu = ga.to_gpu(chroma.gpu.to_float3(pos)) self.dir_gpu = ga.to_gpu(chroma.gpu.to_float3(dir)) - testdir = os.path.dirname(os.path.abspath(chroma.tests.__file__)) + testdir = os.path.dirname(os.path.abspath(__file__)) self.dx_standard = np.load(os.path.join(testdir, 'data/ray_intersection.npz')) def test_intersection_distance(self): -- cgit