forked from pool/python-sh
* always-use-fully-versioned-python-command-in-tests.patch * no-coverage.patch * 0001-Fix-tests-for-the-drop-the-unversion-python.patch * pep-0538-test-fix.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=18
30 lines
801 B
Diff
30 lines
801 B
Diff
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
|
|
|