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
5a11bdcf
Commit
5a11bdcf
authored
Jul 19, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test_datetime.py pass by killing all references to cPickle in it.
parent
9a04d920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
Lib/test/test_datetime.py
Lib/test/test_datetime.py
+2
-14
No files found.
Lib/test/test_datetime.py
View file @
5a11bdcf
...
...
@@ -7,10 +7,6 @@ import os
import
sys
import
pickle
import
unittest
try
:
import
cPickle
except
ImportError
:
cPickle
=
None
from
test
import
test_support
...
...
@@ -20,16 +16,8 @@ from datetime import tzinfo
from
datetime
import
time
from
datetime
import
date
,
datetime
pickle_choices
=
[(
pickler
,
unpickler
,
proto
)
for
pickler
in
(
pickle
,
cPickle
)
if
pickler
is
not
None
for
unpickler
in
(
pickle
,
cPickle
)
if
unpickler
is
not
None
for
proto
in
range
(
3
)]
if
cPickle
is
None
:
assert
len
(
pickle_choices
)
==
3
else
:
assert
len
(
pickle_choices
)
==
2
*
2
*
3
pickle_choices
=
[(
pickle
,
pickle
,
proto
)
for
proto
in
range
(
3
)]
assert
len
(
pickle_choices
)
==
3
# An arbitrary collection of objects of non-datetime types, for testing
# mixed-type comparisons.
...
...
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