Skip to content

Commit be812d7

Browse files
committed
fix case
1 parent 9612dad commit be812d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extra_tests/snippets/stdlib_datetime.py

+4-3
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)