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
350b5183
Commit
350b5183
authored
Sep 10, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_time on platform with 32-bit time_t type
Filter also values for check_float_rounding().
parent
4237d347
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Lib/test/test_time.py
Lib/test/test_time.py
+6
-3
No files found.
Lib/test/test_time.py
View file @
350b5183
...
@@ -918,7 +918,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
...
@@ -918,7 +918,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter
=
self
.
time_t_filter
)
value_filter
=
self
.
time_t_filter
)
self
.
check_float_rounding
(
pytime_object_to_time_t
,
self
.
check_float_rounding
(
pytime_object_to_time_t
,
self
.
decimal_round
)
self
.
decimal_round
,
value_filter
=
self
.
time_t_filter
)
def
create_converter
(
self
,
sec_to_unit
):
def
create_converter
(
self
,
sec_to_unit
):
def
converter
(
secs
):
def
converter
(
secs
):
...
@@ -943,7 +944,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
...
@@ -943,7 +944,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter
=
self
.
time_t_filter
)
value_filter
=
self
.
time_t_filter
)
self
.
check_float_rounding
(
pytime_object_to_timeval
,
self
.
check_float_rounding
(
pytime_object_to_timeval
,
self
.
create_converter
(
SEC_TO_US
))
self
.
create_converter
(
SEC_TO_US
),
value_filter
=
self
.
time_t_filter
)
def
test_object_to_timespec
(
self
):
def
test_object_to_timespec
(
self
):
from
_testcapi
import
pytime_object_to_timespec
from
_testcapi
import
pytime_object_to_timespec
...
@@ -953,7 +955,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
...
@@ -953,7 +955,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter
=
self
.
time_t_filter
)
value_filter
=
self
.
time_t_filter
)
self
.
check_float_rounding
(
pytime_object_to_timespec
,
self
.
check_float_rounding
(
pytime_object_to_timespec
,
self
.
create_converter
(
SEC_TO_NS
))
self
.
create_converter
(
SEC_TO_NS
),
value_filter
=
self
.
time_t_filter
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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