Commits

Adrian Sampson  committed fad79b2

fixes for tests' cross-platformness by jonathan.buchanan

  • Participants
  • Parent commits fd4d436
  • Tags 1.0b6

Comments (0)

Files changed (2)

File test/test_autotag.py

 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'))

File test/test_db.py

         
     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')