git.iko.soy/typeable/nixpkgs
on master help sign in
sage: reenable pexpect interrupt test
commit3f02cdae14dd2deacb2792d84733079b9b0796a0 authorMauricio Collares <mauricio@collares.org> dateSat 6 Mar 2021, 23:13 (6 years ago) parenta296719
2 files changed−32
pkgs/applications/science/math/sage/patches/disable-pexpect-intermittent-failure.patch−29 pkgs/applications/science/math/sage/sage-src.nix−3
pkgs/applications/science/math/sage/patches/disable-pexpect-intermittent-failure.patchdeleted−29
@@ -1,29 +0,0 @@
1−diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py
2−index 88a33b0349..b3321f0bec 100644
3−--- a/src/sage/interfaces/singular.py
4−+++ b/src/sage/interfaces/singular.py
5−@@ -495,24 +495,6 @@ class Singular(ExtraTabCompletion, Expect):
6− """
7− Send an interrupt to Singular. If needed, additional
8− semi-colons are sent until we get back at the prompt.
9−-
10−- TESTS:
11−-
12−- The following works without restarting Singular::
13−-
14−- sage: a = singular(1)
15−- sage: _ = singular._expect.sendline('1+') # unfinished input
16−- sage: try:
17−- ....: alarm(0.5)
18−- ....: singular._expect_expr('>') # interrupt this
19−- ....: except KeyboardInterrupt:
20−- ....: pass
21−- Control-C pressed. Interrupting Singular. Please wait a few seconds...
22−-
23−- We can still access a::
24−-
25−- sage: 2*a
26−- 2
27− """
28− # Work around for Singular bug
29− # http://www.singular.uni-kl.de:8002/trac/ticket/727
pkgs/applications/science/math/sage/sage-src.nix−3
@@ -87,9 +87,6 @@ stdenv.mkDerivation rec {
8787 rev = "2959ac792ebd6107fe87c9af1541083de5ba02d6";
8888 sha256 = "sha256-bWIpEGir9Kawak5CJegBMNcHm/CqhWmdru+emeSsvO0=";
8989 })
90−
91− # disable pexpect interrupt test (see https://trac.sagemath.org/ticket/30945)
92− ./patches/disable-pexpect-intermittent-failure.patch
9390 ];
9491
9592 # Patches needed because of package updates. We could just pin the versions of