[damned-lies] Fixed util test following d3e2bc57b32



commit 7e6c3bce424f933bdc11a85f228ea1421b5da7a2
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Aug 11 17:42:21 2015 +0200

    Fixed util test following d3e2bc57b32

 stats/tests/tests.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index 9f01cca..1fa4699 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -418,7 +418,7 @@ class UtilsTests(TestCase):
 
     @test_scratchdir
     def test_insert_locale_in_linguas(self):
-        linguas_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 
'scratch/git/gnome-hello/po/LINGUAS')
+        linguas_path = os.path.join(settings.SCRATCHDIR, 'git/gnome-hello/po/LINGUAS')
         utils.insert_locale_in_linguas(linguas_path, 'xx')
         with open(linguas_path) as fh:
             self.assertTrue(fh.read().endswith('xx\n'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]