mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
12 lines
385 B
Diff
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):
|