13 Commits

Author SHA256 Message Date
3758511667 Accepting request 1223209 from devel:languages:python
- update to 1.0.2:
  * Change support to Python 3.10, 3.11, 3.12, and 3.13 only.
- drop python3.9.patch (obsolete)

OBS-URL: https://build.opensuse.org/request/show/1223209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=8
2024-11-11 12:45:29 +00:00
c61d555e25 Accepting request 1081785 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081785
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=7
2023-04-22 19:59:03 +00:00
0e75f51dd2 Accepting request 1081588 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081588
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=10
2023-04-21 13:38:11 +00:00
b562004482 Accepting request 929053 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/929053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=6
2021-11-06 17:13:25 +00:00
c6ad252984 Accepting request 928995 from home:pgajdos:python
- %check: use %pytest rpm macro

OBS-URL: https://build.opensuse.org/request/show/928995
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=9
2021-11-03 16:00:52 +00:00
9f59cffc03 Accepting request 886229 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/886229
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=5
2021-04-17 21:24:58 +00:00
7cde60125e Accepting request 886211 from home:cgiboudeaux:branches:devel:languages:python
- Add patch from Debian to fix build with python 3.9:
  * python3.9.patch

OBS-URL: https://build.opensuse.org/request/show/886211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=7
2021-04-17 08:36:22 +00:00
d5dbd873e0 Accepting request 743995 from devel:languages:python
- Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/743995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=4
2019-11-04 16:11:12 +00:00
07f7950624 - Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=5
2019-10-14 14:40:34 +00:00
a9e00b8885 Accepting request 506975 from devel:languages:python
(forwarded request 506709 from alois)

OBS-URL: https://build.opensuse.org/request/show/506975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=3
2017-07-01 12:05:27 +00:00
18975c7d8c Accepting request 506709 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/506709
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=3
2017-06-29 08:43:20 +00:00
Stephan Kulow
0f5b38acb0 Accepting request 200306 from devel:languages:python
needed by python-ZODB3, which replaced now-deleted python-zodb3

OBS-URL: https://build.opensuse.org/request/show/200306
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-random2?expand=0&rev=1
2013-09-26 17:55:55 +00:00
Sascha Peilicke
c99956bda6 Accepting request 186749 from home:frispete:python
dep of python-ZEO

OBS-URL: https://build.opensuse.org/request/show/186749
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=1
2013-08-13 07:27:19 +00:00
2 changed files with 0 additions and 34 deletions

View File

@@ -1,31 +0,0 @@
Description: fix tests with python 3.9
Python docs for the function being tested now state:
"Changed in version 3.9: This method now accepts zero for k."
https://docs.python.org/3/library/random.html#random.getrandbits
Author: Juhani Numminen <juhaninumminen0@gmail.com>
Bug-Debian: https://bugs.debian.org/973085
Last-Update: 2020-11-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/tests.py
+++ b/src/tests.py
@@ -291,7 +291,8 @@
# Verify argument checking
self.assertRaises(TypeError, self.gen.getrandbits)
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)
self.assertRaises(TypeError, self.gen.getrandbits, 10.1)
@@ -448,7 +449,8 @@
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):

BIN
random2-1.0.1.zip (Stored with Git LFS)

Binary file not shown.