Skip to content

Commit 8efc20e

Browse files
committed
feat! add test case for unsupported time format
1 parent 8d77116 commit 8efc20e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extra_tests/snippets/stdlib_datetime.py

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

134134
# unsupport format in strptime should returns arg itself
135-
# XXX this fails because it runs in python not rustpython
136-
assert_equal(_time.strftime("%4Y"), "%4Y")
135+
assert_equal(_time.strftime("%?"), "%?")
137136

138137
# XXX: bug #1302
139138
# def test_normal(self):

0 commit comments

Comments
 (0)