diff options
| author | Martin <gzlist@googlemail.com> | 2011-04-27 02:32:23 +0100 |
|---|---|---|
| committer | Martin <gzlist@googlemail.com> | 2011-04-27 02:32:23 +0100 |
| commit | 43cc336e58f81cd4fdb1692233980110bbc80542 (patch) | |
| tree | 30a7a5eb6f79d3bb85975a14666d9ba9c13a77b5 /python | |
| parent | 1d41987d8fb9da38eea2e99c4f41c0840194ef0f (diff) | |
| download | subunit-git-43cc336e58f81cd4fdb1692233980110bbc80542.tar.gz | |
Fix join_dir test by being more specific about what constitutes a match
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index 1b1aa1d..e0fa7ef 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -913,7 +913,8 @@ class TestExecTestCase(unittest.TestCase): def test_join_dir(self): sibling = subunit.join_dir(__file__, 'foo') - expected = '%s/foo' % (os.path.split(__file__)[0],) + filedir = os.path.abspath(os.path.dirname(__file__)) + expected = os.path.join(filedir, 'foo') self.assertEqual(sibling, expected) |
