forked from conda-forge/cysignals-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
these tests probably never passed on aarch64 but before we did not run the tests in CI. See conda-forge#37.
- Loading branch information
Showing
2 changed files
with
34 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
From 33eaadecfdb3221eb7bde43d587d9578d8f7348c Mon Sep 17 00:00:00 2001 | ||
From 27998ba116a9d3f4c543280656b6c7e1bdd6a55b Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Julian=20R=C3=BCth?= <[email protected]> | ||
Date: Thu, 2 Dec 2021 01:03:26 -0600 | ||
Subject: [PATCH] Remove failing test | ||
|
||
see https://github.com/sagemath/cysignals/issues/159 | ||
--- | ||
src/cysignals/pselect.pyx | 23 ----------------------- | ||
1 file changed, 23 deletions(-) | ||
src/cysignals/pselect.pyx | 44 --------------------------------------- | ||
1 file changed, 44 deletions(-) | ||
|
||
diff --git a/src/cysignals/pselect.pyx b/src/cysignals/pselect.pyx | ||
index 04fcf31..49a8e36 100644 | ||
index 04fcf31..289809f 100644 | ||
--- a/src/cysignals/pselect.pyx | ||
+++ b/src/cysignals/pselect.pyx | ||
@@ -181,29 +181,6 @@ cdef class PSelecter: | ||
|
@@ -42,6 +42,34 @@ index 04fcf31..49a8e36 100644 | |
""" | ||
cdef sigset_t oldset | ||
cdef sigset_t blockset | ||
@@ -246,27 +223,6 @@ cdef class PSelecter: | ||
|
||
OUTPUT: ``self`` | ||
|
||
- TESTS: | ||
- | ||
- Test nesting, where the inner ``with`` statements should have no | ||
- influence, in particular they should not unblock signals which | ||
- were already blocked upon entering:: | ||
- | ||
- >>> from cysignals import AlarmInterrupt | ||
- >>> from cysignals.pselect import PSelecter | ||
- >>> import os, signal | ||
- >>> with PSelecter([signal.SIGALRM]) as sel: | ||
- ... os.kill(os.getpid(), signal.SIGALRM) | ||
- ... with PSelecter([signal.SIGFPE]) as sel2: | ||
- ... _ = sel2.sleep(0.1) | ||
- ... with PSelecter([signal.SIGALRM]) as sel3: | ||
- ... _ = sel3.sleep(0.1) | ||
- ... try: | ||
- ... _ = sel.sleep(0.1) | ||
- ... except AlarmInterrupt: | ||
- ... print("Interrupt OK") | ||
- Interrupt OK | ||
- | ||
""" | ||
sigprocmask(SIG_BLOCK, &self.blockset, &self.oldset) | ||
return self | ||
-- | ||
2.34.1 | ||
|
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