Skip to content

Commit 90b88e1

Browse files
authored
Merge pull request #727 from Alexander-N/flaky
Add debug output for flaky test
2 parents d04542f + cffefa4 commit 90b88e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_datetime.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ fn test_time_check() {
8080
fn test_datetime_check() {
8181
let gil = Python::acquire_gil();
8282
let py = gil.python();
83-
let (obj, sub_obj, sub_sub_obj) =
84-
_get_subclasses(&py, "datetime", "2018, 1, 1, 13, 30, 15").unwrap();
83+
let (obj, sub_obj, sub_sub_obj) = _get_subclasses(&py, "datetime", "2018, 1, 1, 13, 30, 15")
84+
.map_err(|e| e.print(py))
85+
.unwrap();
8586

8687
assert_check_only!(PyDate_Check, obj);
8788
assert_check_exact!(PyDateTime_Check, obj);

0 commit comments

Comments
 (0)