Skip to content

Commit 9612dad

Browse files
committed
fix test case
1 parent 9ddefe4 commit 9612dad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extra_tests/snippets/stdlib_datetime.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ def __init__(self, offset, name):
133133

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

142142
# XXX: bug #1302
143143
# def test_normal(self):

0 commit comments

Comments
 (0)