Skip to content

Commit 48183c6

Browse files
committed
feat! add test case for unsupported time format
1 parent d4c2fd3 commit 48183c6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extra_tests/snippets/stdlib_datetime.py

Lines changed: 1 addition & 2 deletions
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)