Skip to content

Commit b6881e2

Browse files
authored
Merge pull request #200 from iraf-community/ipython9
Fix tests with IPython 9
2 parents 70481e2 + a8698bc commit b6881e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyraf/tests/test_invocation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ def run(self, args, stdin=None, silent=True, use_ecl=False):
6262
stdin=subprocess.PIPE)
6363

6464
if stdin is not None:
65-
stdin = stdin.encode('ascii')
65+
stdin = stdin.encode('ascii', errors='ignore')
6666

6767
self.stdout, self.stderr = proc.communicate(stdin)
6868

69-
self.stdout = self.stdout.decode('ascii')
70-
self.stderr = self.stderr.decode('ascii')
69+
self.stdout = self.stdout.decode('ascii', errors='ignore')
70+
self.stderr = self.stderr.decode('ascii', errors='ignore')
7171

7272
self.code = proc.returncode
7373
return self

0 commit comments

Comments
 (0)