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
95f7b9fc
Commit
95f7b9fc
authored
Jul 24, 2016
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 24773: Make zoneinfo tests more robust. (reapply)
parent
c74fb9c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/test/datetimetester.py
Lib/test/datetimetester.py
+5
-2
No files found.
Lib/test/datetimetester.py
View file @
95f7b9fc
...
...
@@ -4677,7 +4677,10 @@ class ZoneInfoTest(unittest.TestCase):
def
setUp
(
self
):
if
sys
.
platform
==
"win32"
:
self
.
skipTest
(
"Skipping zoneinfo tests on Windows"
)
self
.
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
try
:
self
.
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
except
FileNotFoundError
as
err
:
self
.
skipTest
(
"Skipping %s: %s"
%
(
self
.
zonename
,
err
))
def
assertEquivDatetimes
(
self
,
a
,
b
):
self
.
assertEqual
((
a
.
replace
(
tzinfo
=
None
),
a
.
fold
,
id
(
a
.
tzinfo
)),
...
...
@@ -4738,7 +4741,7 @@ class ZoneInfoTest(unittest.TestCase):
# civil time was generally not solar time in those years.
self
.
zonename
.
startswith
(
'right/'
)):
self
.
skipTest
(
"Skipping %s"
%
self
.
zonename
)
tz
=
ZoneInfo
.
fromname
(
self
.
zonename
)
tz
=
self
.
tz
TZ
=
os
.
environ
.
get
(
'TZ'
)
os
.
environ
[
'TZ'
]
=
self
.
zonename
try
:
...
...
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