Permalink
Browse files

fixes for tests' cross-platformness by jonathan.buchanan

  • Loading branch information...
1 parent bff9f2e commit 0b0d7e0b67d59b3af5895b532df4418740a7884b @sampsyo sampsyo committed Jan 20, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/test_autotag.py
  2. +1 −1 test/test_db.py
View
2 test/test_autotag.py
@@ -53,7 +53,7 @@ def _mkmp3(path):
class AlbumsInDirTest(unittest.TestCase):
def setUp(self):
# create a directory structure for testing
- self.base = os.path.join('rsrc', 'temp_albumsindir')
+ self.base = os.path.abspath(os.path.join('rsrc', 'temp_albumsindir'))
os.mkdir(self.base)
os.mkdir(os.path.join(self.base, 'album1'))
View
2 test/test_db.py
@@ -434,7 +434,7 @@ def setUp(self):
def test_art_filename_respects_setting(self):
art = self.ai.art_destination('something.jpg')
- self.assert_('/artimage.jpg' in art)
+ self.assert_('%sartimage.jpg' % os.path.sep in art)
def test_art_path_in_item_dir(self):
art = self.ai.art_destination('something.jpg')

0 comments on commit 0b0d7e0

Please sign in to comment.