diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-02 18:49:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-02 19:43:08 +0200 |
commit | be3c83c9febc9a51a386d967cdaabb347aa64fe8 (patch) | |
tree | f276a009ef42853979202e49f833894563130881 /dev-python/rdflib/files/rdflib-4-test.patch | |
parent | dev-python/flask: Clean old versions up (diff) | |
download | gentoo-be3c83c9febc9a51a386d967cdaabb347aa64fe8.tar.gz gentoo-be3c83c9febc9a51a386d967cdaabb347aa64fe8.tar.bz2 gentoo-be3c83c9febc9a51a386d967cdaabb347aa64fe8.zip |
dev-python/rdflib: Clean old versions up
Diffstat (limited to 'dev-python/rdflib/files/rdflib-4-test.patch')
-rw-r--r-- | dev-python/rdflib/files/rdflib-4-test.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/dev-python/rdflib/files/rdflib-4-test.patch b/dev-python/rdflib/files/rdflib-4-test.patch deleted file mode 100644 index e79e3ff2a6eb..000000000000 --- a/dev-python/rdflib/files/rdflib-4-test.patch +++ /dev/null @@ -1,41 +0,0 @@ -https://github.com/joernhees/rdflib/commit/36335d5d178ffbcc0422b8b8ee7444893a30ed84 -diff --git a/test/test_issue375.py b/test/test_issue375.py -index 29726b9..17f168b 100644 ---- a/test/test_issue375.py -+++ b/test/test_issue375.py -@@ -1,4 +1,6 @@ -+import os - import subprocess -+import sys - import re - - rdfa_expected = u'''@prefix dc: <http://purl.org/dc/terms/> . -@@ -146,6 +148,9 @@ - rdfa:usesVocabulary schema: . - '''.strip() - -+env = os.environ.copy() -+env['PYTHONPATH'] = '.:' + env.get('PYTHONPATH', '') -+ - def test_rdfpipe_bytes_vs_str(): - """ - Issue 375: rdfpipe command generates bytes vs. str TypeError -@@ -155,7 +160,7 @@ def test_rdfpipe_bytes_vs_str(): - rdfpipe to ensure that we get the expected results. - """ - args = ['python', 'rdflib/tools/rdfpipe.py', '-i', 'rdfa1.1', 'test/rdfa/oreilly.html'] -- proc = subprocess.Popen(args, stdout=subprocess.PIPE, universal_newlines=True) -+ proc = subprocess.Popen(args, stdout=subprocess.PIPE, universal_newlines=True, env=env) - res = '' - while proc.poll() is None: - res += proc.stdout.read() -@@ -170,7 +175,7 @@ def test_rdfpipe_mdata_open(): - the open() builtin instead. - """ - args = ['python', 'rdflib/tools/rdfpipe.py', '-i', 'mdata', 'test/mdata/codelab.html'] -- proc = subprocess.Popen(args, stdout=subprocess.PIPE, universal_newlines=True) -+ proc = subprocess.Popen(args, stdout=subprocess.PIPE, universal_newlines=True, env=env) - res = '' - while proc.poll() is None: - res += proc.stdout.read() - |