Skip to content

Commit

Permalink
fixes for tests' cross-platformness by jonathan.buchanan
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Jan 20, 2011
1 parent bff9f2e commit 0b0d7e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_autotag.py
Expand Up @@ -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'))
Expand Down
2 changes: 1 addition & 1 deletion test/test_db.py
Expand Up @@ -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')
Expand Down

0 comments on commit 0b0d7e0

Please sign in to comment.