Skip execution of filename encoding test on Py3

This commit is contained in:
James Page 2015-08-04 12:22:37 +02:00 committed by Berker Peksag
parent 8a7ab86ecf
commit 26c730fc7e
1 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import contextlib2 as contextlib
import fixtures
import linecache2 as linecache
import six
from six import b, text_type, u
from six import PY2, b, text_type, u
try:
from six import raise_from
except ImportError:
@ -607,6 +607,7 @@ class TestStack(unittest.TestCase):
[' File "foo.py", line 1, in fred\n line\n'],
s.format())
@unittest.skipUnless(PY2, "Applies to 2.x only.")
@unittest.skipIf(sys.getfilesystemencoding()=='ANSI_X3.4-1968',
'Requires non-ascii fs encoding')
def test_format_unicode_filename(self):
@ -651,7 +652,7 @@ class TestStack(unittest.TestCase):
traceback.walk_stack(None), capture_locals=True, limit=1)
s = some_inner(3, 4)
self.assertEqual(
[' File "' + FNAME + '", line 651, '
[' File "' + FNAME + '", line 652, '
'in some_inner\n'
' traceback.walk_stack(None), capture_locals=True, limit=1)\n'
' a = 1\n'