* morituri/test/Makefile.am:
* morituri/test/jose.toc (added): * morituri/test/JoséGonzález.toc (deleted): Rename utf-8 file to a normal file. * morituri/test/common.py: * morituri/test/test_common_checksum.py: * morituri/test/test_common_encode.py: * morituri/test/test_image_image.py: * morituri/test/test_image_toc.py: Copy the normal file first to the utf-8 filename, if supported. Skip tests that need unicode when we are not in a utf-8 locale.
This commit is contained in:
@@ -13,8 +13,6 @@ from morituri.test import common
|
||||
|
||||
from morituri.common import task, encode, log
|
||||
|
||||
from morituri.test import common
|
||||
|
||||
class PathTestCase(common.TestCase):
|
||||
def _testSuffix(self, suffix):
|
||||
self.runner = task.SyncRunner(verbose=False)
|
||||
@@ -30,10 +28,12 @@ class PathTestCase(common.TestCase):
|
||||
os.unlink(path)
|
||||
os.unlink(path + '.out')
|
||||
|
||||
class UnicodePathTestCase(PathTestCase, common.UnicodeTestMixin):
|
||||
def testUnicodePath(self):
|
||||
# this test makes sure we can checksum a unicode path
|
||||
self._testSuffix(u'.morituri.test_encode.B\xeate Noire')
|
||||
|
||||
class NormalPathTestCase(PathTestCase):
|
||||
def testSingleQuote(self):
|
||||
self._testSuffix(u".morituri.test_encode.Guns 'N Roses")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user