summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
commita690a9967e715663b7a421c9ebdad91381cdf1e4 (patch)
tree1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Lib/test/test_strptime.py
parentd456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff)
downloadcpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.zip
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.gz
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.bz2
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index 4dcc82a..70745eb 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -4,7 +4,6 @@ import unittest
import time
import locale
import re
-import sets
import sys
from test import test_support
@@ -17,10 +16,10 @@ class getlang_Tests(unittest.TestCase):
class LocaleTime_Tests(unittest.TestCase):
"""Tests for _strptime.LocaleTime.
-
+
All values are lower-cased when stored in LocaleTime, so make sure to
compare values after running ``lower`` on them.
-
+
"""
def setUp(self):
@@ -167,7 +166,7 @@ class TimeRETests(unittest.TestCase):
# Make sure when tuple or something has no values no regex is generated.
# Fixes bug #661354
test_locale = _strptime.LocaleTime()
- test_locale.timezone = (sets.ImmutableSet(), sets.ImmutableSet())
+ test_locale.timezone = (frozenset(), frozenset())
self.failUnless(_strptime.TimeRE(test_locale).pattern("%Z") == '',
"with timezone == ('',''), TimeRE().pattern('%Z') != ''")