From 0a944682e01b95bd5098c978aefabefcfb7b45eb Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Thu, 2 Mar 2017 10:33:20 +0100 Subject: [PATCH] Fix path to test files --- tests/test_reader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_reader.py b/tests/test_reader.py index 6e08aae..3cd0429 100644 --- a/tests/test_reader.py +++ b/tests/test_reader.py @@ -1,4 +1,5 @@ import unittest +from os import path from nd2reader.reader import ND2Reader @@ -6,9 +7,10 @@ from nd2reader.reader import ND2Reader class TestReader(unittest.TestCase): def setUp(self): + dir_path = path.dirname(path.realpath(__file__)) self.files = [ - './test_data/data001.nd2', - './test_data/data002.nd2' + path.join(dir_path, 'test_data/data001.nd2'), + path.join(dir_path, 'test_data/data002.nd2') ] def test_sizes_data_001(self):