[tor-commits] [ooni-probe/master] Compute the base path inside of the unittest
art at torproject.org
art at torproject.org
Fri Feb 28 14:32:21 UTC 2014
commit 6902a93c0f9b8f832cbf48b30d2cd5e672d4fd7e
Author: Arturo Filastò <art at fuffa.org>
Date: Thu Jan 30 20:02:29 2014 +0100
Compute the base path inside of the unittest
---
ooni/tests/test_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/tests/test_utils.py b/ooni/tests/test_utils.py
index cafb00f..a374232 100644
--- a/ooni/tests/test_utils.py
+++ b/ooni/tests/test_utils.py
@@ -1,9 +1,9 @@
import os
import unittest
from ooni.utils import pushFilenameStack
-basefilename = os.path.abspath('dummyfile')
class TestUtils(unittest.TestCase):
def test_pushFilenameStack(self):
+ basefilename = os.path.join(os.getcwd(), 'dummyfile')
f = open(basefilename, "w+")
f.write("0\n")
f.close()
More information about the tor-commits
mailing list