Skip to content

Commit 9ddefe4

Browse files
committed
fix test cases
1 parent b3163c5 commit 9ddefe4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extra_tests/snippets/stdlib_datetime.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ def __init__(self, offset, name):
132132
assert_raises(NotImplementedError, ne.dst, dt)
133133

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

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

0 commit comments

Comments
 (0)