Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be812d7

Browse filesBrowse files
committed
fix case
1 parent 9612dad commit be812d7
Copy full SHA for be812d7

File tree

1 file changed

+4
-3
lines changed
Filter options

1 file changed

+4
-3
lines changed

‎extra_tests/snippets/stdlib_datetime.py

Copy file name to clipboardExpand all lines: extra_tests/snippets/stdlib_datetime.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@ def __init__(self, offset, name):
133133

134134
# unsupport format in strptime returns arg itself
135135
# in linux/mac
136-
if sys.platform in ('linux'):
136+
if sys.platform in ('linux', 'darwin'):
137137
assert_equal(_time.strftime("%?"), "%?")
138-
elif sys.platform in ('win32', 'darwin'):
138+
elif sys.platform in ('win32'):
139139
# or return Value error in case Windows
140-
assert_equal(_time.strftime("%?"), "?")
140+
with assert_raises(ValueError):
141+
_time.strftime("%?")
141142

142143
# XXX: bug #1302
143144
# def test_normal(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.