Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e46e090f
Commit
e46e090f
authored
Oct 12, 2001
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Merge fix for test breakage.
parent
5bfccfa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lib/python/DateTime/tests/testDateTime.py
lib/python/DateTime/tests/testDateTime.py
+9
-3
No files found.
lib/python/DateTime/tests/testDateTime.py
View file @
e46e090f
...
...
@@ -70,8 +70,10 @@ class DateTimeTests (unittest.TestCase):
def
testConstructor6
(
self
):
'''Constructor from year and julian date'''
dt
=
DateTime
(
'1980/1/5 12:00:00.050 pm'
)
dt1
=
DateTime
(
1980
,
5.500000578705
)
# This test must normalize the time zone, or it *will* break when
# DST changes!
dt1
=
DateTime
(
2000
,
5.500000578705
)
dt
=
DateTime
(
'2000/1/5 12:00:00.050 pm %s'
%
dt1
.
localZone
())
_compare
(
dt
,
dt1
)
def
testConstructor7
(
self
):
...
...
@@ -149,7 +151,11 @@ class DateTimeTests (unittest.TestCase):
'''Comparison of a Y10K date and a Y2K date'''
dt
=
DateTime
(
'10213/09/21'
)
dt1
=
DateTime
(
2000
,
1
,
1
)
assert
dt
-
dt1
==
3000000.0
,
(
dt
-
dt1
)
dsec
=
(
dt
.
millis
()
-
dt1
.
millis
()
)
/
1000.0
ddays
=
math
.
floor
(
(
dsec
/
86400.0
)
+
0.5
)
assert
ddays
==
3000000L
,
ddays
def
test_suite
():
...
...
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