New submission from Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp>: Following tests fails on official Python3.2 Windows binary.
I cannot reproduce this on VC6. ///////////////////////////////////////////////////// C:\Python32>.\python -m test.regrtest -v test_time test_strptime [1/2] test_time test_asctime (test.test_time.TimeTestCase) ... ok test_asctime_bounding_check (test.test_time.TimeTestCase) ... ok test_clock (test.test_time.TimeTestCase) ... ok test_conversions (test.test_time.TimeTestCase) ... ok test_ctime_without_arg (test.test_time.TimeTestCase) ... ok test_data_attributes (test.test_time.TimeTestCase) ... ok test_default_values_for_zero (test.test_time.TimeTestCase) ... ok test_gmtime_without_arg (test.test_time.TimeTestCase) ... ok test_insane_timestamps (test.test_time.TimeTestCase) ... ok test_localtime_without_arg (test.test_time.TimeTestCase) ... ok test_sleep (test.test_time.TimeTestCase) ... ok test_strftime (test.test_time.TimeTestCase) ... ok test_strftime_bounding_check (test.test_time.TimeTestCase) ... ok test_strptime (test.test_time.TimeTestCase) ... FAIL test_strptime_bytes (test.test_time.TimeTestCase) ... ok test_tzset (test.test_time.TimeTestCase) ... ok test_bug_3061 (test.test_time.TestLocale) ... ok ====================================================================== FAIL: test_strptime (test.test_time.TimeTestCase) ---------------------------------------------------------------------- test test_time crashed -- <class 'UnicodeEncodeError'>: 'cp932' codec can't enco de character '\x93' in position 495: illegal multibyte sequence Traceback (most recent call last): File "C:\Python32\lib\test\regrtest.py", line 960, in runtest_inner indirect_test() File "C:\Python32\lib\test\test_time.py", line 244, in test_main support.run_unittest(TimeTestCase, TestLocale) File "C:\Python32\lib\test\support.py", line 1146, in run_unittest _run_suite(suite) File "C:\Python32\lib\test\support.py", line 1120, in _run_suite result = runner.run(suite) File "C:\Python32\lib\unittest\runner.py", line 173, in run result.printErrors() File "C:\Python32\lib\unittest\runner.py", line 110, in printErrors self.printErrorList('FAIL', self.failures) File "C:\Python32\lib\unittest\runner.py", line 117, in printErrorList self.stream.writeln("%s" % err) File "C:\Python32\lib\unittest\runner.py", line 25, in writeln self.write(arg) UnicodeEncodeError: 'cp932' codec can't encode character '\x93' in position 495: illegal multibyte sequence [2/2] test_strptime test_basic (test.test_strptime.getlang_Tests) ... ok test_am_pm (test.test_strptime.LocaleTime_Tests) ... ok test_date_time (test.test_strptime.LocaleTime_Tests) ... ok test_lang (test.test_strptime.LocaleTime_Tests) ... ok test_month (test.test_strptime.LocaleTime_Tests) ... ok test_timezone (test.test_strptime.LocaleTime_Tests) ... FAIL test_weekday (test.test_strptime.LocaleTime_Tests) ... ok test_blankpattern (test.test_strptime.TimeRETests) ... ok test_compile (test.test_strptime.TimeRETests) ... FAIL test_locale_data_w_regex_metacharacters (test.test_strptime.TimeRETests) ... ok test_matching_with_escapes (test.test_strptime.TimeRETests) ... ok test_pattern (test.test_strptime.TimeRETests) ... ok test_pattern_escaping (test.test_strptime.TimeRETests) ... ok test_whitespace_substitution (test.test_strptime.TimeRETests) ... ok test_ValueError (test.test_strptime.StrptimeTests) ... ok test_bad_timezone (test.test_strptime.StrptimeTests) ... ok test_caseinsensitive (test.test_strptime.StrptimeTests) ... ok test_date (test.test_strptime.StrptimeTests) ... ok test_date_time (test.test_strptime.StrptimeTests) ... ok test_day (test.test_strptime.StrptimeTests) ... ok test_defaults (test.test_strptime.StrptimeTests) ... ok test_escaping (test.test_strptime.StrptimeTests) ... ok test_fraction (test.test_strptime.StrptimeTests) ... ok test_hour (test.test_strptime.StrptimeTests) ... ok test_julian (test.test_strptime.StrptimeTests) ... ok test_minute (test.test_strptime.StrptimeTests) ... ok test_month (test.test_strptime.StrptimeTests) ... ok test_percent (test.test_strptime.StrptimeTests) ... ok test_second (test.test_strptime.StrptimeTests) ... ok test_time (test.test_strptime.StrptimeTests) ... ok test_timezone (test.test_strptime.StrptimeTests) ... ERROR test_unconverteddata (test.test_strptime.StrptimeTests) ... ok test_weekday (test.test_strptime.StrptimeTests) ... ok test_year (test.test_strptime.StrptimeTests) ... ok test_twelve_noon_midnight (test.test_strptime.Strptime12AMPMTests) ... ok test_all_julian_days (test.test_strptime.JulianTests) ... ok test_day_of_week_calculation (test.test_strptime.CalculationTests) ... ERROR test_gregorian_calculation (test.test_strptime.CalculationTests) ... ERROR test_julian_calculation (test.test_strptime.CalculationTests) ... ERROR test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTes ts) ... ok test_TimeRE_recreation (test.test_strptime.CacheTests) ... ok test_new_localetime (test.test_strptime.CacheTests) ... ok test_regex_cleanup (test.test_strptime.CacheTests) ... ok test_time_re_recreation (test.test_strptime.CacheTests) ... ok ====================================================================== ERROR: test_timezone (test.test_strptime.StrptimeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python32\lib\test\test_strptime.py", line 303, in test_timezone strp_output = _strptime._strptime_time(strf_output, "%Z") File "C:\Python32\lib\_strptime.py", line 482, in _strptime_time tt = _strptime(data_string, format)[0] File "C:\Python32\lib\_strptime.py", line 337, in _strptime (data_string, format)) ValueError: time data '\x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\x9e)' does not match format '%Z' ====================================================================== ERROR: test_day_of_week_calculation (test.test_strptime.CalculationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python32\lib\test\test_strptime.py", line 437, in test_day_of_week_ca lculation format_string) File "C:\Python32\lib\_strptime.py", line 482, in _strptime_time tt = _strptime(data_string, format)[0] File "C:\Python32\lib\_strptime.py", line 337, in _strptime (data_string, format)) ValueError: time data '2010 12 08 14 00 342 \x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\ x9e)' does not match format '%Y %m %d %H %S %j %Z' ====================================================================== ERROR: test_gregorian_calculation (test.test_strptime.CalculationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python32\lib\test\test_strptime.py", line 423, in test_gregorian_calc ulation format_string) File "C:\Python32\lib\_strptime.py", line 482, in _strptime_time tt = _strptime(data_string, format)[0] File "C:\Python32\lib\_strptime.py", line 337, in _strptime (data_string, format)) ValueError: time data '2010 14 58 01 3 342 \x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\x 9e)' does not match format '%Y %H %M %S %w %j %Z' ====================================================================== ERROR: test_julian_calculation (test.test_strptime.CalculationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python32\lib\test\test_strptime.py", line 414, in test_julian_calcula tion format_string) File "C:\Python32\lib\_strptime.py", line 482, in _strptime_time tt = _strptime(data_string, format)[0] File "C:\Python32\lib\_strptime.py", line 337, in _strptime (data_string, format)) ValueError: time data '2010 12 08 14 58 01 3 \x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e \x9e)' does not match format '%Y %m %d %H %M %S %w %Z' ====================================================================== FAIL: test_timezone (test.test_strptime.LocaleTime_Tests) ---------------------------------------------------------------------- test test_strptime crashed -- <class 'UnicodeEncodeError'>: 'cp932' codec can't encode character '\x93' in position 192: illegal multibyte sequence Traceback (most recent call last): File "C:\Python32\lib\test\regrtest.py", line 960, in runtest_inner indirect_test() File "C:\Python32\lib\test\test_strptime.py", line 557, in test_main CacheTests File "C:\Python32\lib\test\support.py", line 1146, in run_unittest _run_suite(suite) File "C:\Python32\lib\test\support.py", line 1120, in _run_suite result = runner.run(suite) File "C:\Python32\lib\unittest\runner.py", line 173, in run result.printErrors() File "C:\Python32\lib\unittest\runner.py", line 110, in printErrors self.printErrorList('FAIL', self.failures) File "C:\Python32\lib\unittest\runner.py", line 117, in printErrorList self.stream.writeln("%s" % err) File "C:\Python32\lib\unittest\runner.py", line 25, in writeln self.write(arg) UnicodeEncodeError: 'cp932' codec can't encode character '\x93' in position 192: illegal multibyte sequence 2 tests failed: test_strptime test_time ---------- components: Windows messages: 123612 nosy: ocean-city priority: normal severity: normal status: open title: test_time test_strptime fails on windows versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10653> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com