- Add patches to fix some tests: * fix-test_signal_group.diff * fix-test_general_signal.diff (bsc#1120329) OBS-URL: https://build.opensuse.org/request/show/705674 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=20
21 lines
530 B
Diff
21 lines
530 B
Diff
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)
|