Skip to content

Commit da1e20f

Browse files
committed
be more lax with ordering in invalid_result_conversion ui test
1 parent 9a56685 commit da1e20f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn test_compile_errors() {
3333
t.compile_fail("tests/ui/invalid_pymethod_receiver.rs");
3434
t.compile_fail("tests/ui/missing_intopy.rs");
3535
// adding extra error conversion impls changes the output
36-
#[cfg(not(any(windows, feature = "eyre", feature = "anyhow")))]
36+
#[cfg(not(any(windows, feature = "eyre", feature = "anyhow", Py_LIMITED_API)))]
3737
t.compile_fail("tests/ui/invalid_result_conversion.rs");
3838
t.compile_fail("tests/ui/not_send.rs");
3939
t.compile_fail("tests/ui/not_send2.rs");

tests/ui/invalid_result_conversion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ error[E0277]: the trait bound `PyErr: From<MyError>` is not satisfied
66
|
77
= help: the following other types implement trait `From<T>`:
88
<PyErr as From<PyBorrowError>>
9-
<PyErr as From<PyBorrowMutError>>
109
<PyErr as From<std::io::Error>>
10+
<PyErr as From<PyBorrowMutError>>
1111
<PyErr as From<PyDowncastError<'a>>>
1212
<PyErr as From<DowncastError<'_, '_>>>
1313
<PyErr as From<DowncastIntoError<'_>>>

0 commit comments

Comments
 (0)