* morituri/test/test_image_toc.py:

Fix distcheck by writing unicode toc filename in a temp dir.
This commit is contained in:
Thomas Vander Stichele
2010-04-25 19:39:39 +00:00
parent 243d949853
commit cf1d8674ed
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-04-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/test/test_image_toc.py:
Fix distcheck by writing unicode toc filename in a temp dir.
2010-04-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/cd.py:

View File

@@ -217,7 +217,8 @@ class UnicodeTestCase(common.TestCase, common.UnicodeTestMixin):
path = u'Jos\xe9Gonz\xe1lez.toc'
self._performer = u'Jos\xe9 Gonz\xe1lez'
source = os.path.join(os.path.dirname(__file__), 'jose.toc')
self.dest = os.path.join(os.path.dirname(__file__), path)
(fd, self.dest) = tempfile.mkstemp(suffix=path)
os.close(fd)
shutil.copy(source, self.dest)
self.toc = toc.TocFile(self.dest)
self.toc.parse()