diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py index 3e918fd54ce3ca..e94324cb28b739 100644 --- a/Lib/test/test_utf8_mode.py +++ b/Lib/test/test_utf8_mode.py @@ -12,7 +12,7 @@ MS_WINDOWS = (sys.platform == 'win32') - +HPUX = (sys.platform.startswith('hp-ux')) class UTF8ModeTests(unittest.TestCase): DEFAULT_ENV = { @@ -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') diff --git a/Misc/NEWS.d/next/Tests/2018-08-28-09-29-00.bpo-34403.Eyek0k.rst b/Misc/NEWS.d/next/Tests/2018-08-28-09-29-00.bpo-34403.Eyek0k.rst new file mode 100644 index 00000000000000..bc732bdea88305 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-08-28-09-29-00.bpo-34403.Eyek0k.rst @@ -0,0 +1 @@ +Skip test_utf8_mode.test_cmd_line() on HP-UX. Patch by Michael Osipov.