Skip to content

Commit 0cf0b04

Browse files
committed
change decorator to run test case
1 parent d07f198 commit 0cf0b04

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Lib/test/test_time.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def test_sleep(self):
157157
self.assertRaises(ValueError, time.sleep, -1)
158158
time.sleep(1.2)
159159

160+
# TODO: RUSTPYTHON
161+
@unittest.expectedFailure
160162
def test_strftime(self):
161163
tt = time.gmtime(self.t)
162164
for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I',
@@ -170,12 +172,7 @@ def test_strftime(self):
170172

171173
self.assertRaises(TypeError, time.strftime, b'%S', tt)
172174
# embedded null character
173-
# XXX this test case fails, this should have been handled in
174-
# in in layers above fn strftime.
175-
# self.assertRaises(ValueError, time.strftime, '%S\0', tt)
176-
177-
# check if unsupported arg in strftime returns arg itself
178-
self.assertEqual(time.strftime("%4Y"), "%4Y")
175+
self.assertRaises(ValueError, time.strftime, '%S\0', tt)
179176

180177
def _bounds_checking(self, func):
181178
# Make sure that strftime() checks the bounds of the various parts

0 commit comments

Comments
 (0)