diff options
Diffstat (limited to 'dev-python/sh/files/sh-1.12.14-tests.patch')
-rw-r--r-- | dev-python/sh/files/sh-1.12.14-tests.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/dev-python/sh/files/sh-1.12.14-tests.patch b/dev-python/sh/files/sh-1.12.14-tests.patch deleted file mode 100644 index bc3d1b59fef6..000000000000 --- a/dev-python/sh/files/sh-1.12.14-tests.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff --git a/test.py b/test.py -index 68ef40c..640e5b5 100644 ---- a/test.py -+++ b/test.py -@@ -515,6 +515,13 @@ def test_environment(self): - "VERSIONER_PYTHON_VERSION", - ] - -+ # On python-3.7+, the changes for no encoding inject LC_CTYPE into subprocesses -+ py37_extra_envvars = [ -+ "LC_CTYPE", -+ ] -+ -+ prune_envvars = osx_cruft + py37_extra_envvars -+ - # first we test that the environment exists in our child process as - # we've set it - py = create_tmp_test(""" -@@ -525,7 +532,7 @@ def test_environment(self): - try: del os.environ[key] - except: pass - print(os.environ["HERP"] + " " + str(len(os.environ))) --""" % osx_cruft) -+""" % prune_envvars) - out = python(py.name, _env=env).strip() - self.assertEqual(out, "DERP 1") - -@@ -533,12 +540,12 @@ def test_environment(self): - import os, sys - sys.path.insert(0, os.getcwd()) - import sh --osx_cruft = %s --for key in osx_cruft: -+prune_envvars = %s -+for key in prune_envvars: - try: del os.environ[key] - except: pass - print(sh.HERP + " " + str(len(os.environ))) --""" % osx_cruft) -+""" % prune_envvars) - out = python(py.name, _env=env, _cwd=THIS_DIR).strip() - self.assertEqual(out, "DERP 1") - |