|
@@ -373,7 +373,7 @@ class ASN1Coder(object): |
|
|
raise ValueError('last character must be Z') |
|
|
raise ValueError('last character must be Z') |
|
|
|
|
|
|
|
|
# Real bug is in strptime, but work around it here. |
|
|
# Real bug is in strptime, but work around it here. |
|
|
if ' ' in data: |
|
|
|
|
|
|
|
|
if ' ' in ts: |
|
|
raise ValueError('no spaces are allowed') |
|
|
raise ValueError('no spaces are allowed') |
|
|
|
|
|
|
|
|
if '.' in ts: |
|
|
if '.' in ts: |
|
@@ -601,6 +601,7 @@ class TestCode(unittest.TestCase): |
|
|
set(), set((1,2,3)), |
|
|
set(), set((1,2,3)), |
|
|
set((1,'sjlfdkj', None, float('inf'))), |
|
|
set((1,'sjlfdkj', None, float('inf'))), |
|
|
datetime.datetime.utcnow(), |
|
|
datetime.datetime.utcnow(), |
|
|
|
|
|
[ datetime.datetime.utcnow(), ' ' ], |
|
|
datetime.datetime.utcnow().replace(microsecond=0), |
|
|
datetime.datetime.utcnow().replace(microsecond=0), |
|
|
datetime.datetime.utcnow().replace(microsecond=1000), |
|
|
datetime.datetime.utcnow().replace(microsecond=1000), |
|
|
]: |
|
|
]: |
|
|