Message12166

Author adamburke
Recipients adamburke
Date 2018-11-03.05:08:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541221704.64.0.788709270274.issue2714@psf.upfronthosting.co.za>
In-reply-to
Content
test_os_jy has some Turkish and Japanese failures on my windows and cygwin environment.

Platform:
    'Java-10.0.2-Java_HotSpot-TM-_64-Bit_Server_VM,_10.0.2+13,_-Oracle_Corporation-on-Windows_10-10.0-amd64'

======================================================================
ERROR: test_turkish_locale_posix_module (test.test_os_jy.LocaleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython2\dist\Lib\test\test_os_jy.py", line 353, in test_turkish_locale_posix_module
    self.assertEqual(
  File "C:\Users\Adam\jython\jython2\dist\Lib\subprocess.py", line 586, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['C:\\Users\\Adam\\jython\\jython2\\dist\\bin\\jython.exe', '-c', "import sys; assert 'posix' in sys.builtin_module_names"]' returned non-zero exit status 1

======================================================================
FAIL: test_strftime_japanese_locale (test.test_os_jy.LocaleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython2\dist\Lib\test\test_os_jy.py", line 399, in test_strftime_japanese_locale
    self.assertEqual(
AssertionError: "'\\xe6\\x97\\xa5 3\\xe6\\x9c\\x88 29 14:55:13 2015'\r\n" != "'\\xe6\\x97\\xa5 3 29 14:55:13 2015'\n"

======================================================================
FAIL: test_strptime_locale (test.test_os_jy.LocaleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython2\dist\Lib\test\test_os_jy.py", line 387, in test_strptime_locale
    self.assertEqual(
AssertionError: '2015-01-22 00:00:00\r\n' != '2015-01-22 00:00:00\n'

======================================================================
FAIL: test_turkish_locale_string_lower_upper (test.test_os_jy.LocaleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython2\dist\Lib\test\test_os_jy.py", line 365, in test_turkish_locale_string_lower_upper
    self.assertIn(
AssertionError: "['i', u'i', 'I', u'I']\r\n" not found in ["['i', u'\\u0131', 'I', u'\\u0130']\n", "['i', u'i', 'I', u'I']\n"]

----------------------------------------------------------------------
Ran 27 tests in 23.689s

Some of these are failures only on cygwin, some on Java 8, some on Java 10. The Java 10 failures are due to Japanese local changes.

I have a patch locally, which I will share as a PR.
History
Date User Action Args
2018-11-03 05:08:24adamburkesetrecipients: + adamburke
2018-11-03 05:08:24adamburkesetmessageid: <1541221704.64.0.788709270274.issue2714@psf.upfronthosting.co.za>
2018-11-03 05:08:24adamburkelinkissue2714 messages
2018-11-03 05:08:23adamburkecreate