Skip to content

Commit f5fbe62

Browse files
committed
Fixes Python 3.9 tests
1 parent e0c8304 commit f5fbe62

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/types/weakref/anyref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ mod tests {
525525
inner(new_proxy)
526526
}
527527

528+
#[cfg(Py_3_10)] // Name is different in 3.9
528529
#[test]
529530
fn test_classinfo_downcast_error() -> PyResult<()> {
530531
Python::attach(|py| {

src/types/weakref/proxy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ mod tests {
433433
})
434434
}
435435

436+
#[cfg(Py_3_10)] // Name is different in 3.9
436437
#[test]
437438
fn test_classinfo_downcast_error() -> PyResult<()> {
438439
Python::attach(|py| {

0 commit comments

Comments
 (0)