From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-toolbelt/, dev-python/requests-toolbelt/files/
Date: Sat, 27 Nov 2021 10:27:35 +0000 (UTC) [thread overview]
Message-ID: <1638008848.ee5976955db0aec96005ff4e51ef36c6d612934f.mgorny@gentoo> (raw)
commit: ee5976955db0aec96005ff4e51ef36c6d612934f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 27 10:10:17 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 27 10:27:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee597695
dev-python/requests-toolbelt: Replace patch with EPYTEST_DESELECT
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../requests-toolbelt-0.9.1-tests-internet.patch | 28 ----------------------
.../requests-toolbelt-0.9.1.ebuild | 14 ++++++++---
2 files changed, 11 insertions(+), 31 deletions(-)
diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests-internet.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests-internet.patch
deleted file mode 100644
index b3dc2603c117..000000000000
--- a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests-internet.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/tests/test_multipart_encoder.py b/tests/test_multipart_encoder.py
-index 575f54c..73a880e 100644
---- a/tests/test_multipart_encoder.py
-+++ b/tests/test_multipart_encoder.py
-@@ -94,6 +94,7 @@ class TestFileFromURLWrapper(unittest.TestCase):
- s = requests.Session()
- self.recorder = get_betamax(s)
-
-+ @unittest.skip("test requires internet access")
- def test_read_file(self):
- url = ('https://stxnext.com/static/img/logo.830ebe551641.svg')
- with self.recorder.use_cassette(
-@@ -110,6 +111,7 @@ class TestFileFromURLWrapper(unittest.TestCase):
- assert chunk == b'ww.w3.org/'
- assert self.instance.len == 5147
-
-+ @unittest.skip("test requires internet access")
- def test_no_content_length_header(self):
- url = (
- 'https://api.github.com/repos/sigmavirus24/github3.py/releases/'
-@@ -191,6 +193,7 @@ class TestMultipartEncoder(unittest.TestCase):
- m = MultipartEncoder([('field', 'foo'), ('file', fd)])
- assert m.read() is not None
-
-+ @unittest.skip("test requires internet access")
- def test_reads_file_from_url_wrapper(self):
- s = requests.Session()
- recorder = get_betamax(s)
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.9.1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.9.1.ebuild
index ea834e88ccdd..145581a7c94d 100644
--- a/dev-python/requests-toolbelt/requests-toolbelt-0.9.1.ebuild
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.9.1.ebuild
@@ -29,10 +29,18 @@ PATCHES=(
"${FILESDIR}/requests-toolbelt-0.8.0-test-tracebacks.patch"
"${FILESDIR}/requests-toolbelt-0.9.1-tests.patch"
- # disable tests that require internet access
- "${FILESDIR}/requests-toolbelt-0.9.1-tests-internet.patch"
-
"${FILESDIR}/requests-toolbelt-0.9.1-py310.patch"
)
distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # Internet
+ tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_no_content_length_header
+ tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_read_file
+ tests/test_multipart_encoder.py::TestMultipartEncoder::test_reads_file_from_url_wrapper
+ )
+
+ epytest
+}
next reply other threads:[~2021-11-27 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-27 10:27 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-09 6:12 [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-toolbelt/, dev-python/requests-toolbelt/files/ Michał Górny
2021-11-27 10:27 Michał Górny
2018-03-13 23:56 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1638008848.ee5976955db0aec96005ff4e51ef36c6d612934f.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox