forked from PyO3/pyo3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ed94c6
commit 526023c
Showing
4 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
import pyo3_pytests.misc | ||
import pytest | ||
|
||
|
||
def test_issue_219(): | ||
# Should not deadlock | ||
pyo3_pytests.misc.issue_219() | ||
|
||
|
||
def test_capsule_send_destructor(): | ||
with pytest.warns( | ||
RuntimeWarning, | ||
match="capsule destructor called in thread other than the one the capsule was created in", | ||
): | ||
pyo3_pytests.misc.capsule_send_destructor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters