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
|
From: Ole Streicher <olebole@debian.org>
Date: Sat, 14 Mar 2026 08:58:57 +0100
Subject: Fix tests with IPython 9
Closes: #1129367
---
pyraf/tests/test_invocation.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyraf/tests/test_invocation.py b/pyraf/tests/test_invocation.py
index 9761893..878c857 100644
--- a/pyraf/tests/test_invocation.py
+++ b/pyraf/tests/test_invocation.py
@@ -62,12 +62,12 @@ class PyrafEx:
stdin=subprocess.PIPE)
if stdin is not None:
- stdin = stdin.encode('ascii')
+ stdin = stdin.encode('ascii', errors='ignore')
self.stdout, self.stderr = proc.communicate(stdin)
- self.stdout = self.stdout.decode('ascii')
- self.stderr = self.stderr.decode('ascii')
+ self.stdout = self.stdout.decode('ascii', errors='ignore')
+ self.stderr = self.stderr.decode('ascii', errors='ignore')
self.code = proc.returncode
return self
|