Message119696
| Author |
djc |
| Recipients |
belopolsky, djc |
| Date |
2010年10月27日.11:51:23 |
| SpamBayes Score |
2.5118168e-05 |
| Marked as misclassified |
No |
| Message-id |
<1288180286.09.0.61662115749.issue10213@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
test_strptime in test_time fails when the timezone is not set:
======================================================================
FAIL: test_strptime (test.test_time.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_time.py",
line 117, in test_strptime
(format, strf_output))
AssertionError: conversion specifier '%Z' failed with 'Local time zone must be set--see zic manual page' input.
----------------------------------------------------------------------
Ran 14 tests in 1.206s
Maybe something like this is good enough?
Index: test_time.py
===================================================================
--- test_time.py (revision 85856)
+++ test_time.py (working copy)
@@ -111,6 +111,8 @@
try:
time.strptime(strf_output, format)
except ValueError:
+ if 'Local time zone must be set' in strf_output:
+ continue
self.fail("conversion specifier %r failed with '%s' input." %
(format, strf_output)) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月27日 11:51:26 | djc | set | recipients:
+ djc, belopolsky |
| 2010年10月27日 11:51:26 | djc | set | messageid: <1288180286.09.0.61662115749.issue10213@psf.upfronthosting.co.za> |
| 2010年10月27日 11:51:24 | djc | link | issue10213 messages |
| 2010年10月27日 11:51:23 | djc | create |
|