[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Compute the base path inside of the unittest
commit 6902a93c0f9b8f832cbf48b30d2cd5e672d4fd7e
Author: Arturo Filastò <art@xxxxxxxxx>
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()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits