Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3e913c9e
Commit
3e913c9e
authored
Jan 02, 2011
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8013: Fixed test
parent
e1bc8982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Lib/test/test_time.py
Lib/test/test_time.py
+9
-2
No files found.
Lib/test/test_time.py
View file @
3e913c9e
...
...
@@ -123,8 +123,15 @@ class TimeTestCase(unittest.TestCase):
time
.
asctime
(
time
.
gmtime
(
self
.
t
))
self
.
assertRaises
(
TypeError
,
time
.
asctime
,
0
)
self
.
assertRaises
(
TypeError
,
time
.
asctime
,
())
self
.
assertRaises
(
ValueError
,
time
.
asctime
,
(
12345
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
))
# XXX: Posix compiant asctime should refuse to convert
# year > 9999, but Linux implementation does not.
# self.assertRaises(ValueError, time.asctime,
# (12345, 1, 0, 0, 0, 0, 0, 0, 0))
# XXX: For now, just make sure we don't have a crash:
try
:
time
.
asctime
((
12345
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
))
except
ValueError
:
pass
def
test_asctime_bounding_check
(
self
):
self
.
_bounds_checking
(
time
.
asctime
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment