Skip to content

Commit d4cc09d

Browse files
committed
fix expect interface for newer ptyprocess
See #32147 for details
1 parent 4d3e807 commit d4cc09d

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

build/pkgs/ptyprocess/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tarball=ptyprocess-VERSION.tar.gz
2-
sha1=3290062d67ef8a2f136bff9c2cd106673ff21316
3-
md5=94e537122914cc9ec9c1eadcd36e73a1
4-
cksum=1748633415
2+
sha1=2d8830d1025c8e33149c7723c2f283122f9488c1
3+
md5=9da200c397cb1752209a6b718b6cfc68
4+
cksum=2094263560
55
upstream_url=https://pypi.io/packages/source/p/ptyprocess/ptyprocess-VERSION.tar.gz
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
ptyprocess ==0.5.1
2-
# https://github.com/sagemath/sage/issues/31280#comment:42 and following
3-
# sagelib is not compatible with ptyprocess 0.5.2, 0.6, and 0.7
1+
ptyprocess > 0.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.1.p0
1+
0.7.0

src/sage/interfaces/expect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def _close(self, force=True):
561561
try:
562562
if self._expect is not None:
563563
self._expect.close(force=force)
564-
except ExceptionPexpect:
564+
except (ExceptionPexpect, OSError):
565565
self._expect.ptyproc.fd = -1
566566
self._expect.ptyproc.closed = True
567567
self._expect.child_fd = -1

0 commit comments

Comments
 (0)