SHA256
1
0
forked from pool/python-sh
python-sh/fix-test_signal_group.diff

21 lines
530 B
Diff
Raw Normal View History

Index: sh-1.12.14/test.py
===================================================================
--- sh-1.12.14.orig/test.py
+++ sh-1.12.14/test.py
@@ -1,4 +1,4 @@
-# -*- coding: utf8 -*-
+# -*- coding: utf-8 -*-
import sys
import os
@@ -2048,7 +2048,8 @@ time.sleep(3)
""")
parent = create_tmp_test("""
-import sys
+import os, sys
+sys.path.insert(0, os.getcwd())
import sh
system_python = sh.Command(sh.which("python%d.%d" % sys.version_info[:2]))
p = system_python("{child_file}", _bg=True, _new_session=False)