SHA256
1
0
forked from pool/python-sh
python-sh/fix-test_signal_group.diff
Tomáš Chvátal 8c4d2a3b8f Accepting request 705674 from home:aplanas:branches:devel:languages:python
- 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
2019-05-27 13:39:01 +00:00

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)