diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-16 20:43:46 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-16 20:43:46 -0400 |
commit | da253e9978f44b0341587ce4265f013cc44a9b52 (patch) | |
tree | 87933edfa0f24428e27e90f06c15f94fdc81449f /test | |
parent | 26e5398807b6edd6dd71046ef745f5c6acfab1ed (diff) | |
download | chroma-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.py | 2 |
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): |