Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_utf8_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


MS_WINDOWS = (sys.platform == 'win32')

HPUX = (sys.platform.startswith('hp-ux'))

class UTF8ModeTests(unittest.TestCase):
DEFAULT_ENV = {
Expand Down Expand Up @@ -205,6 +205,7 @@ def test_locale_getpreferredencoding(self):
self.assertEqual(out, 'UTF-8 UTF-8')

@unittest.skipIf(MS_WINDOWS, 'test specific to Unix')
@unittest.skipIf(HPUX, 'test specific to Unix with single-byte default locale')
def test_cmd_line(self):
arg = 'h\xe9\u20ac'.encode('utf-8')
arg_utf8 = arg.decode('utf-8')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip test_utf8_mode.test_cmd_line() on HP-UX. Patch by Michael Osipov.