From cf1d8674ed2906398c3e0c851e56538eaa12fd9d Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 25 Apr 2010 19:39:39 +0000 Subject: [PATCH] * morituri/test/test_image_toc.py: Fix distcheck by writing unicode toc filename in a temp dir. --- ChangeLog | 5 +++++ morituri/test/test_image_toc.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 93f4f0a..4c125e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-25 Thomas Vander Stichele + + * morituri/test/test_image_toc.py: + Fix distcheck by writing unicode toc filename in a temp dir. + 2010-04-25 Thomas Vander Stichele * morituri/rip/cd.py: diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py index 461f9ce..70090bf 100644 --- a/morituri/test/test_image_toc.py +++ b/morituri/test/test_image_toc.py @@ -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()