summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Carrogan <kevin.carrogan@gmail.com>2014-05-09 20:30:37 +0100
committerKevin Carrogan <kevin.carrogan@gmail.com>2014-05-09 20:30:37 +0100
commit9e38d1bb959d67afd1a996d1cdccf8449086c065 (patch)
treefd2fd087ee7d7f87101daf97f1c73f3a32fa49e1
parent6a54b9a412354ae1e0a53bcb4db9d440b8c86dd6 (diff)
downloadpystache-9e38d1bb959d67afd1a996d1cdccf8449086c065.tar.gz
Making test OS agnostic.
-rw-r--r--pystache/tests/test_specloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pystache/tests/test_specloader.py b/pystache/tests/test_specloader.py
index d934987..cacc0fc 100644
--- a/pystache/tests/test_specloader.py
+++ b/pystache/tests/test_specloader.py
@@ -383,11 +383,11 @@ class TemplateSpecTests(unittest.TestCase, AssertPathsMixin):
loader = self._make_loader()
view = SampleView()
- view.template_rel_path = 'foo/bar.txt'
+ view.template_rel_path = os.path.join('foo', 'bar.txt')
self.assertTrue(loader._find_relative(view)[0] is not None)
actual = loader._find(view)
- expected = os.path.join(DATA_DIR, 'foo/bar.txt')
+ expected = os.path.join(DATA_DIR, 'foo', 'bar.txt')
self.assertPaths(actual, expected)