aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/math/sage/patches/disable-pexpect-intermittent-failure.patch
blob: 374c720791941159733f0e2fa4ffeacc1a6a7b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py
index 88a33b0349..b3321f0bec 100644
--- a/src/sage/interfaces/singular.py
+++ b/src/sage/interfaces/singular.py
@@ -495,24 +495,6 @@ class Singular(ExtraTabCompletion, Expect):
         """
         Send an interrupt to Singular. If needed, additional
         semi-colons are sent until we get back at the prompt.
-
-        TESTS:
-
-        The following works without restarting Singular::
-
-            sage: a = singular(1)
-            sage: _ = singular._expect.sendline('1+')  # unfinished input
-            sage: try:
-            ....:     alarm(0.5)
-            ....:     singular._expect_expr('>')  # interrupt this
-            ....: except KeyboardInterrupt:
-            ....:     pass
-            Control-C pressed.  Interrupting Singular. Please wait a few seconds...
-
-        We can still access a::
-
-            sage: 2*a
-            2
         """
         # Work around for Singular bug
         # http://www.singular.uni-kl.de:8002/trac/ticket/727