Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
python3-sh
0001-Fix-tests-for-the-drop-the-unversion-pytho...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-tests-for-the-drop-the-unversion-python.patch of Package python3-sh
From 392a0471ed19d71a226442270127a9414ccc7908 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon <pingou@pingoured.fr> Date: Tue, 24 Jul 2018 17:39:58 +0200 Subject: [PATCH] Fix tests for the drop the unversion python Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr> --- test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 68ef40c..71994fa 100644 --- a/test.py +++ b/test.py @@ -3007,7 +3007,10 @@ class ExecutionContextTests(unittest.TestCase): import sh _sh = sh() omg = _sh - from omg import python + if IS_PY2: + from omg import python2 + else: + from omg import python3 def test_importer_only_works_with_sh(self): def unallowed_import(): -- 2.14.4
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