Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
python3-sh
fix-test_general_signal.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-test_general_signal.diff of Package python3-sh
Index: sh-1.12.14/test.py =================================================================== --- sh-1.12.14.orig/test.py +++ sh-1.12.14/test.py @@ -1374,10 +1374,9 @@ for i in range(5): self.assertTrue("4" not in stdout) def test_general_signal(self): - import signal from signal import SIGINT - py = create_tmp_test(""" + py = create_tmp_test(r""" import sys import os import time @@ -1386,7 +1385,7 @@ import signal def sig_handler(sig, frame): print(10) exit(0) - + signal.signal(signal.SIGINT, sig_handler) for i in range(5): @@ -1403,7 +1402,7 @@ for i in range(5): process.signal(SIGINT) return True - p = python(py.name, _out=agg, _tee=True) + p = python('-u', py.name, _out=agg, _tee=True) p.wait() self.assertEqual(p.process.exit_code, 0)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor