aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-random2-getrandbits-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/patches/python-random2-getrandbits-test.patch')
-rw-r--r--gnu/packages/patches/python-random2-getrandbits-test.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-random2-getrandbits-test.patch b/gnu/packages/patches/python-random2-getrandbits-test.patch
new file mode 100644
index 0000000000..4f6c56027a
--- /dev/null
+++ b/gnu/packages/patches/python-random2-getrandbits-test.patch
@@ -0,0 +1,23 @@
+From 1bac6355d9c65de847cc445d782c466778b94fbd Mon Sep 17 00:00:00 2001
+From: "Robert T. McGibbon" <rmcgibbo@gmail.com>
+Date: Sun, 9 May 2021 11:18:23 -0400
+Subject: [PATCH] Update tests for python3.9
+
+---
+ src/tests.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/tests.py b/src/tests.py
+index d918891..4f2c3de 100644
+--- a/src/tests.py
++++ b/src/tests.py
+@@ -448,7 +448,8 @@ def test_genrandbits(self):
+ self.assertRaises(TypeError, self.gen.getrandbits)
+ self.assertRaises(TypeError, self.gen.getrandbits, 'a')
+ self.assertRaises(TypeError, self.gen.getrandbits, 1, 2)
+- self.assertRaises(ValueError, self.gen.getrandbits, 0)
++ if sys.version_info < (3, 9):
++ self.assertRaises(ValueError, self.gen.getrandbits, 0)
+ self.assertRaises(ValueError, self.gen.getrandbits, -1)
+
+ def test_randbelow_logic(self, _log=log, int=int):
variable. (%torbrowser-firefox-version): New variable. (torbrowser-assets)[version]: Use %torbrowser-version. (torbrowser)[version]: Use %torbrowser-version. [source]: Use %torbrowser-firefox-version. [arguments]: Use the package version. Change-Id: I4d262e0a9528ff515da89c31589d88201dcdf941 Clément Lassieur 2023-12-27gnu: Add torbrowser....* gnu/packages/tor.scm (torbrowser): New variable. (torbrowser-assets): New variable. * gnu/packages/browser-extensions.scm (noscript): New variable. (noscript/icecat): New variable. Co-authored-by: André Batista <nandre@riseup.net> Change-Id: I73dc53905e4a028108bb34aae07e44256cf16c85 Clément Lassieur 2023-12-10gnu: tor: Update to 0.4.8.10....* gnu/packages/tor.scm (tor): Update to 0.4.8.10. Change-Id: Ibc11c83c3fea920c6b876a22cb4c96d5c927beb5 Efraim Flashner 2023-11-15gnu: tor: Update to 0.4.8.9 [security fixes]....* gnu/packages/tor.scm (tor): Update to 0.4.8.9. This release fixes two high severity security vulnerabilities. The first one affects client connections to Guard relays and the other one affects Onion Services (TROVE-2023-006). See https://gitlab.torproject.org/tpo/core/tor/-/issues/40876 and https://gitlab.torproject.org/tpo/core/tor/-/issues/40883 Signed-off-by: Ludovic Courtès <ludo@gnu.org> André Batista 2023-11-09gnu: tor: Update to 0.4.8.8 [fixes TROVE-2023-004]....* gnu/packages/tor.scm (tor): Update to 0.4.8.8. Fixes TROVE-2023-004 which affects tor relays. See https://gitlab.torproject.org/tpo/core/tor/-/issues/40880 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> André Batista 2023-10-24gnu: tor: Update to 0.4.8.7....* gnu/packages/tor.scm (tor): Update to 0.4.8.7. Signed-off-by: Ludovic Courtès <ludo@gnu.org> André Batista 2023-09-18gnu: tor: Update to 0.4.8.6....* gnu/packages/tor.scm (tor): Update to 0.4.8.6. [source]: Remove patch. * gnu/packages/patches/tor-remove-defensive-assert.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. Efraim Flashner 2023-09-14gnu: tor: Update to 0.4.8.5....* gnu/packages/tor.scm (tor): Update to 0.4.8.5. * gnu/packages/tor.scm (tor)[arguments]<#:configure-flags>: Add "--enable-gpl". * gnu/packages/patches/tor-remove-defensive-assert.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/tor.scm (tor)[source]: Add patch to remove defensive assert. Signed-off-by: Ludovic Courtès <ludo@gnu.org> fanquake 2023-08-16gnu: tor: Update to 0.4.7.14....* gnu/packages/tor.scm (tor): Update to 0.4.7.14. Signed-off-by: Ludovic Courtès <ludo@gnu.org> fanquake