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
d62a5143
Commit
d62a5143
authored
May 08, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#17877: merge with 3.3.
parents
0fbdf261
6bcc0f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_email/test_utils.py
Lib/test/test_email/test_utils.py
+4
-0
No files found.
Lib/test/test_email/test_utils.py
View file @
d62a5143
...
@@ -4,6 +4,7 @@ import test.support
...
@@ -4,6 +4,7 @@ import test.support
import
time
import
time
import
unittest
import
unittest
import
sys
import
sys
import
os.path
class
DateTimeTests
(
unittest
.
TestCase
):
class
DateTimeTests
(
unittest
.
TestCase
):
...
@@ -123,6 +124,9 @@ class LocaltimeTests(unittest.TestCase):
...
@@ -123,6 +124,9 @@ class LocaltimeTests(unittest.TestCase):
# XXX: Need a more robust test for Olson's tzdata
# XXX: Need a more robust test for Olson's tzdata
@
unittest
.
skipIf
(
sys
.
platform
.
startswith
(
'win'
),
@
unittest
.
skipIf
(
sys
.
platform
.
startswith
(
'win'
),
"Windows does not use Olson's TZ database"
)
"Windows does not use Olson's TZ database"
)
@
unittest
.
skipUnless
(
os
.
path
.
exists
(
'/usr/share/zoneinfo'
)
or
os
.
path
.
exists
(
'/usr/lib/zoneinfo'
),
"Can't find the Olson's TZ database"
)
@
test
.
support
.
run_with_tz
(
'Europe/Kiev'
)
@
test
.
support
.
run_with_tz
(
'Europe/Kiev'
)
def
test_variable_tzname
(
self
):
def
test_variable_tzname
(
self
):
t0
=
datetime
.
datetime
(
1984
,
1
,
1
,
tzinfo
=
datetime
.
timezone
.
utc
)
t0
=
datetime
.
datetime
(
1984
,
1
,
1
,
tzinfo
=
datetime
.
timezone
.
utc
)
...
...
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