about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/sage/patches/sagespawn-implicit-casting.patch
blob: 2ee5db3e29c0b939a8dde08bd35ffb37dd6e5b83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/sage/interfaces/sagespawn.pyx b/src/sage/interfaces/sagespawn.pyx
index 9041238f1d..469befbc66 100644
--- a/src/sage/interfaces/sagespawn.pyx
+++ b/src/sage/interfaces/sagespawn.pyx
@@ -228,7 +228,7 @@ class SagePtyProcess(PtyProcess):
         Check that the process eventually dies after calling
         ``terminate_async``::
 
-            sage: s.ptyproc.terminate_async(interval=0.2)
+            sage: s.ptyproc.terminate_async(interval=float(0.2))
             sage: while True:
             ....:     try:
             ....:         os.kill(s.pid, 0)