From 201e0938a2e0f1f7e747fa6e809e0e5886b90d11 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Thu, 19 Feb 2015 16:08:06 -0500 Subject: tests/file_test.py: in test_relativepath method path.join is used to construct pathnames. --- tests/file_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/file_test.py b/tests/file_test.py index b3edc7a..50bf261 100644 --- a/tests/file_test.py +++ b/tests/file_test.py @@ -100,14 +100,13 @@ class TestFile(object): """ test_file_basename = path.basename(self.TEST_FILE) - print test_file_basename assert test_file_basename == relative_path(self.TEST_FILE, self.config) split_and_encrypt(self.TEST_FILE, self.config) test_file_shard_0 = '%s.shard.0' % test_file_basename - test_file_shard_0_abspath = "%s/%s" % (get_nodedirs(self.config)[0], - test_file_shard_0) + test_file_shard_0_abspath = path.join(get_nodedirs(self.config)[0], + test_file_shard_0) assert test_file_shard_0 == relative_path(test_file_shard_0_abspath, self.config, False) -- cgit v1.2.3