summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strftime.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 (GMT)
commitee8712cda46338d223509cc5751fd36509ad3860 (patch)
treebb9d363b4276566415457980472001c7e3ec2bed /Lib/test/test_strftime.py
parent6a654814ea3f3a918935762ffdcd33ae98e00278 (diff)
downloadcpython-ee8712cda46338d223509cc5751fd36509ad3860.zip
cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.gz
cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.bz2
#2621 rename test.test_support to test.support
Diffstat (limited to 'Lib/test/test_strftime.py')
-rwxr-xr-xLib/test/test_strftime.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py
index 5af5a0c..7128fd7 100755
--- a/Lib/test/test_strftime.py
+++ b/Lib/test/test_strftime.py
@@ -6,7 +6,7 @@ import calendar
import sys
import os
import re
-from test import test_support
+from test import support
import time
import unittest
@@ -68,7 +68,7 @@ class StrftimeTest(unittest.TestCase):
self.strftest1(now)
self.strftest2(now)
- if test_support.verbose:
+ if support.verbose:
print("Strftime test, platform: %s, Python version: %s" % \
(sys.platform, sys.version.split()[0]))
@@ -80,7 +80,7 @@ class StrftimeTest(unittest.TestCase):
self.strftest2(arg)
def strftest1(self, now):
- if test_support.verbose:
+ if support.verbose:
print("strftime test for", time.ctime(now))
now = self.now
# Make sure any characters that could be taken as regex syntax is
@@ -162,24 +162,24 @@ class StrftimeTest(unittest.TestCase):
except ValueError as result:
msg = "Error for nonstandard '%s' format (%s): %s" % \
(e[0], e[2], str(result))
- if test_support.verbose:
+ if support.verbose:
print(msg)
continue
if re.match(escapestr(e[1], self.ampm), result):
- if test_support.verbose:
+ if support.verbose:
print("Supports nonstandard '%s' format (%s)" % (e[0], e[2]))
elif not result or result[0] == '%':
- if test_support.verbose:
+ if support.verbose:
print("Does not appear to support '%s' format (%s)" % \
(e[0], e[2]))
else:
- if test_support.verbose:
+ if support.verbose:
print("Conflict for nonstandard '%s' format (%s):" % \
(e[0], e[2]))
print(" Expected %s, but got %s" % (e[1], result))
def test_main():
- test_support.run_unittest(StrftimeTest)
+ support.run_unittest(StrftimeTest)
if __name__ == '__main__':
test_main()