From e00a59097efb2d9a98fadc99d1627037aacb6ab6 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sun, 2 Jul 2017 09:06:08 -0400 Subject: gnu: python-vobject: Update to 0.9.5. * gnu/packages/python.scm (python-vobject, python2-vobject): Update to 0.9.5. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6e1e289e908..3e71a23bcf6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10218,13 +10218,13 @@ introspection of @code{zope.interface} instances in code.") (define-public python-vobject (package (name "python-vobject") - (version "0.9.4.1") + (version "0.9.5") (source (origin (method url-fetch) (uri (pypi-uri "vobject" version)) (sha256 (base32 - "0741h2cf743sbk89dpfm1yca26l4s159nzvy6vv8xg72nd7pvsps")))) + "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg")))) (build-system python-build-system) (arguments '(;; The test suite relies on some non-portable Windows interfaces. -- cgit v1.3 From 295f32f34b45d4df6c06d241d0ac1572ff5ed4cc Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 1 Jul 2017 21:48:06 +0200 Subject: gnu: python-cffi: Really enable tests. * gnu/packages/python.scm (python-cffi, python2-cffi)[arguments]: Replace 'check' phase with custom expression. Change to 'modify-phases' syntax. --- gnu/packages/python.scm | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3e71a23bcf6..a55cdafa259 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4781,19 +4781,31 @@ a front-end for C compilers or analysis tools.") ("python-sphinx" ,python-sphinx) ("python-pytest" ,python-pytest))) (arguments - `(#:phases - (alist-cons-after - 'install 'install-doc - (lambda* (#:key outputs #:allow-other-keys) - (let* ((data (string-append (assoc-ref outputs "doc") "/share")) - (doc (string-append data "/doc/" ,name "-" ,version)) - (html (string-append doc "/html"))) - (with-directory-excursion "doc" - (system* "make" "html") - (mkdir-p html) - (copy-recursively "build/html" html)) - (copy-file "LICENSE" (string-append doc "/LICENSE")))) - %standard-phases))) + `(#:modules ((ice-9 ftw) + (srfi srfi-26) + (guix build utils) + (guix build python-build-system)) + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append + (getenv "PYTHONPATH") + ":" (getcwd) "/build/" + (car (scandir "build" (cut string-prefix? "lib." <>))))) + (zero? (system* "py.test" "-v")))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((data (string-append (assoc-ref outputs "doc") "/share")) + (doc (string-append data "/doc/" ,name "-" ,version)) + (html (string-append doc "/html"))) + (with-directory-excursion "doc" + (system* "make" "html") + (mkdir-p html) + (copy-recursively "build/html" html)) + (copy-file "LICENSE" (string-append doc "/LICENSE")) + #t)))))) (home-page "http://cffi.readthedocs.org") (synopsis "Foreign function interface for Python") (description -- cgit v1.3 From 029933cf79daf9faed9160f58f390c3e7384a33e Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 3 Jul 2017 01:22:52 +0200 Subject: gnu: python-cffi: Update to 1.10.0. * gnu/packages/python.scm (python-cffi): Update to 1.10.0. [arguments]<#:phases>: Patch distutils.ccompiler call to use "gcc". Patch another hard-coded cc invocation. Adjust `py.test` invocation per README. --- gnu/packages/python.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a55cdafa259..d1902231b73 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4763,13 +4763,13 @@ a front-end for C compilers or analysis tools.") (define-public python-cffi (package (name "python-cffi") - (version "1.4.2") + (version "1.10.0") (source (origin (method url-fetch) (uri (pypi-uri "cffi" version)) (sha256 - (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) + (base32 "1mffyilq4qycm8gs4wkgb18rnqil8a9blqq77chdlshzxc8jkc5k")))) (build-system python-build-system) (outputs '("out" "doc")) (inputs @@ -4794,7 +4794,18 @@ a front-end for C compilers or analysis tools.") (getenv "PYTHONPATH") ":" (getcwd) "/build/" (car (scandir "build" (cut string-prefix? "lib." <>))))) - (zero? (system* "py.test" "-v")))) + + ;; XXX The "normal" approach of setting CC and friends does + ;; not work here. Is this the correct way of doing things? + (substitute* "testing/embedding/test_basic.py" + (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") + (string-append "c = distutils.ccompiler.new_compiler();" + "c.set_executables(compiler='gcc'," + "compiler_so='gcc',linker_exe='gcc'," + "linker_so='gcc -shared')"))) + (substitute* "testing/cffi0/test_ownlib.py" + (("'cc testownlib") "'gcc testownlib")) + (zero? (system* "py.test" "-v" "c/" "testing/")))) (add-after 'install 'install-doc (lambda* (#:key outputs #:allow-other-keys) (let* ((data (string-append (assoc-ref outputs "doc") "/share")) -- cgit v1.3 From 89fc5b82d46ff5bede7ef4b1e7f5d95dabb92ed6 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 1 Jul 2017 22:28:01 +0200 Subject: gnu: python-cryptography: Update to 1.9. * gnu/packages/python.scm (python-cryptography-vectors): Update to 1.9. (python-cryptography): Update to 1.9. [propagated-inputs]: Remove PYTHON-PACKAGING. --- gnu/packages/python.scm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d1902231b73..5ddb82ed47c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7388,14 +7388,14 @@ responses, rather than doing any computation.") (define-public python-cryptography-vectors (package (name "python-cryptography-vectors") - (version "1.8.2") + (version "1.9") (source (origin (method url-fetch) (uri (pypi-uri "cryptography_vectors" version)) (sha256 (base32 - "0hzvq0bfy21bc35p8z7zdxpv3hbvi7adg4axc1b5yd3hk16a1nh0")))) + "1wvq1p1viam1diz9x6d61x1bsy6cninv7cjgd35x9ffig9r6gxxv")))) (build-system python-build-system) (home-page "https://github.com/pyca/cryptography") (synopsis "Test vectors for the cryptography package") @@ -7410,14 +7410,14 @@ responses, rather than doing any computation.") (define-public python-cryptography (package (name "python-cryptography") - (version "1.8.2") + (version "1.9") (source (origin (method url-fetch) (uri (pypi-uri "cryptography" version)) (sha256 (base32 - "1nmy4fw3zy7rlvarkhn33g9905rwpy9z7k5kv8j80f0s6ynfp24f")))) + "10j8r1s29f4h59kp3mla14g588rm7qpn90nrczijk03i49q3662m")))) (build-system python-build-system) (inputs `(("openssl" ,openssl))) @@ -7426,12 +7426,6 @@ responses, rather than doing any computation.") ("python-cffi" ,python-cffi) ("python-six" ,python-six) ("python-idna" ,python-idna) - ;; Packaging is used to check the version of python-cffi in - ;; 'src/cryptography/hazmat/primitives/ciphers/base.py'. We should be - ;; able to remove this dependency in the next release of cryptography: - ;; python-cryptography: - ;; https://github.com/pyca/cryptography/commit/0417d00d9ff1e19bc3ab67d39bdd18e1674768c1 - ("python-packaging" ,python-packaging) ("python-iso8601" ,python-iso8601))) (native-inputs `(("python-cryptography-vectors" ,python-cryptography-vectors) -- cgit v1.3 From 96bbc41f8be5e6bb8483f5ce596db47be271e9e8 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 1 Jul 2017 21:14:30 +0200 Subject: gnu: python-pyopenssl: Update to 17.1.0. * gnu/packages/python.scm (python-pyopenssl, python2-pyopenssl): Update to 17.1.0. [source]: Remove patch. [native-inputs]: Add PYTHON-PRETEND. [arguments]<#:phases>: Disable the network test here instead of via a patch. Also disable one new test. * gnu/packages/patches/python-pyopenssl-skip-network-test.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. --- gnu/local.mk | 1 - .../python-pyopenssl-skip-network-test.patch | 43 ---------------------- gnu/packages/python.scm | 19 +++++++--- 3 files changed, 13 insertions(+), 50 deletions(-) delete mode 100644 gnu/packages/patches/python-pyopenssl-skip-network-test.patch (limited to 'gnu/packages/python.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 22df8dfdda4..3b68a4d48ca 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -952,7 +952,6 @@ dist_patch_DATA = \ %D%/packages/patches/python-paste-remove-timing-test.patch \ %D%/packages/patches/python-pillow-freetype-2.7-test-failure.patch \ %D%/packages/patches/python-pygit2-disable-network-tests.patch \ - %D%/packages/patches/python-pyopenssl-skip-network-test.patch \ %D%/packages/patches/python-pycrypto-CVE-2013-7459.patch \ %D%/packages/patches/python2-pygobject-2-gi-info-type-error-domain.patch \ %D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \ diff --git a/gnu/packages/patches/python-pyopenssl-skip-network-test.patch b/gnu/packages/patches/python-pyopenssl-skip-network-test.patch deleted file mode 100644 index 1ac7324c8b0..00000000000 --- a/gnu/packages/patches/python-pyopenssl-skip-network-test.patch +++ /dev/null @@ -1,43 +0,0 @@ -This test tries connecting to an external server which is not supported -in the build environment. See discussion at: - -https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00650.html - -diff --git a/tests/test_ssl.py b/tests/test_ssl.py -index ee849fd..60048b8 100644 ---- a/tests/test_ssl.py -+++ b/tests/test_ssl.py -@@ -1113,33 +1113,6 @@ class TestContext(object): - reason="set_default_verify_paths appears not to work on Windows. " - "See LP#404343 and LP#404344." - ) -- def test_set_default_verify_paths(self): -- """ -- `Context.set_default_verify_paths` causes the platform-specific CA -- certificate locations to be used for verification purposes. -- """ -- # Testing this requires a server with a certificate signed by one -- # of the CAs in the platform CA location. Getting one of those -- # costs money. Fortunately (or unfortunately, depending on your -- # perspective), it's easy to think of a public server on the -- # internet which has such a certificate. Connecting to the network -- # in a unit test is bad, but it's the only way I can think of to -- # really test this. -exarkun -- -- # Arg, verisign.com doesn't speak anything newer than TLS 1.0 -- context = Context(SSLv23_METHOD) -- context.set_default_verify_paths() -- context.set_verify( -- VERIFY_PEER, -- lambda conn, cert, errno, depth, preverify_ok: preverify_ok) -- -- client = socket() -- client.connect(("encrypted.google.com", 443)) -- clientSSL = Connection(context, client) -- clientSSL.set_connect_state() -- clientSSL.do_handshake() -- clientSSL.send(b"GET / HTTP/1.0\r\n\r\n") -- assert clientSSL.recv(1024) - - def test_add_extra_chain_cert_invalid_cert(self): - """ diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5ddb82ed47c..f34f2d39f68 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7459,16 +7459,14 @@ message digests and key derivation functions.") (define-public python-pyopenssl (package (name "python-pyopenssl") - (version "17.0.0") + (version "17.1.0") (source (origin (method url-fetch) (uri (pypi-uri "pyOpenSSL" version)) (sha256 (base32 - "1pdg1gpmkzj8yasg6cmkhcivxcdp4c12nif88y4qvsxq5ffzxas8")) - (patches - (search-patches "python-pyopenssl-skip-network-test.patch")))) + "0qwmqhfsq84ydir9dz273ypmlcvs7v71m1jns0sd4k0h6lfsa82s")))) (build-system python-build-system) (arguments '(#:phases @@ -7477,14 +7475,23 @@ message digests and key derivation functions.") (add-after 'install 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) - (zero? (system* "py.test" "-v"))))))) + (zero? (system* "py.test" "-v" "-k" + (string-append + ;; This test tries to look up certificates from + ;; the compiled-in default path in OpenSSL, which + ;; does not exist in the build environment. + "not test_fallback_default_verify_paths " + ;; This test attempts to make a connection to + ;; an external web service. + "and not test_set_default_verify_paths")))))))) (propagated-inputs `(("python-cryptography" ,python-cryptography) ("python-six" ,python-six))) (inputs `(("openssl" ,openssl))) (native-inputs - `(("python-pytest" ,python-pytest-3.0))) + `(("python-pretend" ,python-pretend) + ("python-pytest" ,python-pytest-3.0))) (home-page "https://github.com/pyca/pyopenssl") (synopsis "Python wrapper module around the OpenSSL library") (description -- cgit v1.3 From de2f56cf96c70d5d3e61809621e71864f5a7f51e Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 4 Jul 2017 02:38:55 +0200 Subject: gnu: python-astroid: Update to 1.5.3. * gnu/packages/python.scm (python-astroid): Update to 1.5.3. [properties]: Declare python2 variant. (python2-astroid)[propagated-inputs]: Add PYTHON2-BACKPORTS-FUNCTOOLS-LRU-CACHE, PYTHON2-ENUM34 and PYTHON2-SINGLEDISPATCH. --- gnu/packages/python.scm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f34f2d39f68..54ab56eeaeb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13864,7 +13864,7 @@ users' sessions over extended periods of time.") (define-public python-astroid (package (name "python-astroid") - (version "1.4.9") + (version "1.5.3") (source (origin (method url-fetch) @@ -13873,7 +13873,7 @@ users' sessions over extended periods of time.") version ".tar.gz")) (sha256 (base32 - "0j0wgy54d13a470vm4b9rdjk99n1hmdxpf34x9k3pbmi9w9b566z")))) + "0isn5p7f9n48hmksgbrj7dkm9dyglnayzn5jngk37qywg8a74ngn")))) (build-system python-build-system) (propagated-inputs `(("python-lazy-object-proxy" ,python-lazy-object-proxy) @@ -13898,10 +13898,19 @@ down the AST and building an extended ast. The new node classes have additional methods and attributes for different usages. They include some support for static inference and local name scopes. Furthermore, astroid builds partial trees by inspecting living objects.") - (license license:lgpl2.1+))) + (license license:lgpl2.1+) + (properties `((python2-variant . ,(delay python2-astroid)))))) (define-public python2-astroid - (package-with-python2 python-astroid)) + (let ((base (package-with-python2 + (strip-python2-variant python-astroid)))) + (package (inherit base) + (propagated-inputs + `(("python2-backports-functools-lru-cache" + ,python2-backports-functools-lru-cache) + ("python2-enum34" ,python2-enum34) + ("python2-singledispatch" ,python2-singledispatch) + ,@(package-propagated-inputs base)))))) (define-public python-isort (package -- cgit v1.3 From a8a964db83dd49d8bb58574eccd9bfd7aebfba4b Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 4 Jul 2017 02:50:46 +0200 Subject: gnu: python-pylint: Update to 1.7.2. * gnu/packages/python.scm (python-pylint): Update to 1.7.2. [native-inputs]: Add PYTHON-PYTEST and PYTHON-PYTEST-RUNNER. --- gnu/packages/python.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 54ab56eeaeb..546ac8d7b34 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14023,7 +14023,7 @@ statements in the module it tests.") (define-public python-pylint (package (name "python-pylint") - (version "1.6.5") + (version "1.7.2") (source (origin (method url-fetch) @@ -14032,10 +14032,12 @@ statements in the module it tests.") version ".tar.gz")) (sha256 (base32 - "08pmgflmq2zrzrn9nkfadzwa5vybz46wvwxhrsd2mjlcgsh4rzbm")))) + "0mzn1czhf1mgr2wiqfihb274sja02h899b85kywdpivppa9nwrmp")))) (build-system python-build-system) (native-inputs - `(("python-tox" ,python-tox))) + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner) + ("python-tox" ,python-tox))) (propagated-inputs `(("python-astroid" ,python-astroid) ("python-isort" ,python-isort) -- cgit v1.3 From 93013f1e7989db0b15f8a19068f0e1716b3ecbb0 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 7 Jul 2017 00:37:10 -0400 Subject: gnu: python-icalendar: Update to 3.11.5. * gnu/packages/python.scm (python-icalendar): Update to 3.11.5. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 546ac8d7b34..cd7521397bf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8982,13 +8982,13 @@ processes across test runs.") (define-public python-icalendar (package (name "python-icalendar") - (version "3.11.4") + (version "3.11.5") (source (origin (method url-fetch) (uri (pypi-uri "icalendar" version)) (sha256 (base32 - "0ix3xxykz8hs8mx4f2063djawmd888y3vsl75fbvbfqvg67v35jn")))) + "0y6f2js983ag0d138xx4pzyc71gf44hyqmjsdvw6pq2xrkpj8jzk")))) (build-system python-build-system) (propagated-inputs `(("python-dateutil" ,python-dateutil) -- cgit v1.3 From 642656a144eb6267fb724e6f6465be0ef062490f Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 7 Jul 2017 00:38:58 -0400 Subject: gnu: python-parsedatetime: Update to 2.4. * gnu/packages/python.scm (python-parsedatetime, python2-parsedatetime): Update to 2.4. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cd7521397bf..2a7b517e228 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1193,14 +1193,14 @@ datetime module, available in Python 2.3+.") (define-public python-parsedatetime (package (name "python-parsedatetime") - (version "2.3") + (version "2.4") (source (origin (method url-fetch) (uri (pypi-uri "parsedatetime" version)) (sha256 (base32 - "1vkrmd398s11h1zn3zaqqsiqhj9lwy1ikcg6irx2lrgjzjg3rjll")))) + "0jxqkjks7z9dn222cqgvskp4wr6d92aglinxq7pd2w4mzdc7r09x")))) (build-system python-build-system) (native-inputs `(("python-nose" ,python-nose) -- cgit v1.3 From d28f90bed95e63f7c066e242549aa25a09276750 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 7 Jul 2017 18:28:45 +0200 Subject: gnu: python-pyopenssl: Fix test failure on 32-bit platforms. * gnu/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-pyopenssl)[source]: Use it. --- gnu/local.mk | 1 + .../python-pyopenssl-17.1.0-test-overflow.patch | 36 ++++++++++++++++++++++ gnu/packages/python.scm | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 gnu/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch (limited to 'gnu/packages/python.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 6f6db6d0ad4..8e4af46428d 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -958,6 +958,7 @@ dist_patch_DATA = \ %D%/packages/patches/python-pycrypto-CVE-2013-7459.patch \ %D%/packages/patches/python2-pygobject-2-gi-info-type-error-domain.patch \ %D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \ + %D%/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch \ %D%/packages/patches/python2-subprocess32-disable-input-test.patch \ %D%/packages/patches/qemu-CVE-2017-7493.patch \ %D%/packages/patches/qemu-CVE-2017-8112.patch \ diff --git a/gnu/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch b/gnu/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch new file mode 100644 index 00000000000..06b2f4fe03f --- /dev/null +++ b/gnu/packages/patches/python-pyopenssl-17.1.0-test-overflow.patch @@ -0,0 +1,36 @@ +Resolves a test failure on 32-bit platforms. + +https://github.com/pyca/pyopenssl/issues/657 + +Patch copied from upstream source repository: + +https://github.com/pyca/pyopenssl/commit/ecc0325479c0d5c5f2ca88b4550e87cdb59d6c95 + +From ecc0325479c0d5c5f2ca88b4550e87cdb59d6c95 Mon Sep 17 00:00:00 2001 +From: Alex Gaynor +Date: Thu, 6 Jul 2017 22:14:44 -0400 +Subject: [PATCH] Fixed #657 -- handle OverflowErrors on large allocation + requests + +--- + tests/test_rand.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/test_rand.py b/tests/test_rand.py +index bdd3af08..6adf72a1 100644 +--- a/tests/test_rand.py ++++ b/tests/test_rand.py +@@ -32,10 +32,10 @@ def test_bytes_wrong_args(self, args): + + def test_insufficient_memory(self): + """ +- `OpenSSL.rand.bytes` raises `MemoryError` if more bytes are requested +- than will fit in memory. ++ `OpenSSL.rand.bytes` raises `MemoryError` or `OverflowError` if more ++ bytes are requested than will fit in memory. + """ +- with pytest.raises(MemoryError): ++ with pytest.raises((MemoryError, OverflowError)): + rand.bytes(sys.maxsize) + + def test_bytes(self): diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2a7b517e228..d110a1cb32c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7464,6 +7464,8 @@ message digests and key derivation functions.") (origin (method url-fetch) (uri (pypi-uri "pyOpenSSL" version)) + (patches + (search-patches "python-pyopenssl-17.1.0-test-overflow.patch")) (sha256 (base32 "0qwmqhfsq84ydir9dz273ypmlcvs7v71m1jns0sd4k0h6lfsa82s")))) -- cgit v1.3