From: Francois Deppierraz Date: Fri, 21 May 2010 16:05:59 +0000 (-0700) Subject: test_stringutils.py: Skip test_listdir_unicode on mocked platform which cannot store... X-Git-Url: https://git.rkrishnan.org/vdrive/%5B/%5D%20/uri/configuration.rst?a=commitdiff_plain;h=01da7f06e65578f5237c5d461c80b45d165e7a57;p=tahoe-lafs%2Ftahoe-lafs.git test_stringutils.py: Skip test_listdir_unicode on mocked platform which cannot store non-ASCII filenames --- diff --git a/src/allmydata/test/test_stringutils.py b/src/allmydata/test/test_stringutils.py index 38841c17..77013de6 100644 --- a/src/allmydata/test/test_stringutils.py +++ b/src/allmydata/test/test_stringutils.py @@ -176,6 +176,8 @@ class StringUtils: @patch('sys.getfilesystemencoding') @patch('os.listdir') def test_listdir_unicode(self, mock_listdir, mock_getfilesystemencoding): + if 'dirlist' not in dir(self): + raise unittest.SkipTest("No way to write non-ASCII filenames on this system") mock_listdir.return_value = self.dirlist mock_getfilesystemencoding.return_value = self.filesystemencoding