forked from pool/python-sh
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
This commit is contained in:
committed by
Git OBS Bridge
parent
e5b6917c11
commit
8c4d2a3b8f
20
fix-test_signal_group.diff
Normal file
20
fix-test_signal_group.diff
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
Reference in New Issue
Block a user