summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-09-16 20:43:46 -0400
committerStan Seibert <stan@mtrr.org>2011-09-16 20:43:46 -0400
commitda253e9978f44b0341587ce4265f013cc44a9b52 (patch)
tree87933edfa0f24428e27e90f06c15f94fdc81449f /test
parent26e5398807b6edd6dd71046ef745f5c6acfab1ed (diff)
downloadchroma-da253e9978f44b0341587ce4265f013cc44a9b52.tar.gz
chroma-da253e9978f44b0341587ce4265f013cc44a9b52.tar.bz2
chroma-da253e9978f44b0341587ce4265f013cc44a9b52.zip
Modify test_ray_intersection to use __file__ to file location of test standard
Diffstat (limited to 'test')
-rw-r--r--test/test_ray_intersection.py2
1 files changed, 1 insertions, 1 deletions
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):