[SCM] morituri/master: * morituri/test/test_image_toc.py: Fix distcheck by writing unicode toc filename in a temp dir.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:20 UTC 2014


The following commit has been merged in the master branch:
commit cf1d8674ed2906398c3e0c851e56538eaa12fd9d
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Apr 25 19:39:39 2010 +0000

    	* morituri/test/test_image_toc.py:
    	  Fix distcheck by writing unicode toc filename in a temp dir.

diff --git a/ChangeLog b/ChangeLog
index 93f4f0a..4c125e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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:
 	  Log the version at the beginning to help in bug reports.
 
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()

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list