aports/community/py3-terminado/test_get_pid.patch
2022-04-17 04:08:30 +00:00

12 lines
385 B
Diff

--- ./terminado/tests/basic_test.py.orig
+++ ./terminado/tests/basic_test.py
@@ -93,7 +93,7 @@
match = re.search(r'echo \$\$\\.*?\\r\\n(\d+)', repr(stdout))
pid = int(match.groups()[0])
else:
- pid = int(stdout.split('\n')[1])
+ pid = int(re.findall("[0-9]{1,9}", stdout)[0])
return pid
def close(self):