Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-siphashc for openSUSE:Factory
checked in at 2023-12-28 23:02:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-siphashc (Old)
and /work/SRC/openSUSE:Factory/.python-siphashc.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-siphashc"
Thu Dec 28 23:02:43 2023 rev:8 rq:1135348 version:2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-siphashc/python-siphashc.changes
2023-07-03 17:44:03.209166516 +0200
+++
/work/SRC/openSUSE:Factory/.python-siphashc.new.28375/python-siphashc.changes
2023-12-28 23:04:27.737018562 +0100
@@ -1,0 +2,8 @@
+Wed Dec 27 16:11:57 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.3:
+ * Tested with Python 3.9, 3.10, 3.11, and 3.12, no changes
+ needed.
+ * Dropped support for Python 3.5, 3.6, and 3.7.
+
+-------------------------------------------------------------------
Old:
----
siphashc-2.1.tar.gz
New:
----
siphashc-2.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-siphashc.spec ++++++
--- /var/tmp/diff_new_pack.N5kI6D/_old 2023-12-28 23:04:28.369041661 +0100
+++ /var/tmp/diff_new_pack.N5kI6D/_new 2023-12-28 23:04:28.369041661 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-siphashc
-Version: 2.1
+Version: 2.3
Release: 0
Summary: Python C module to calculate SipHashes
License: ISC
++++++ siphashc-2.1.tar.gz -> siphashc-2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/CHANGES.rst new/siphashc-2.3/CHANGES.rst
--- old/siphashc-2.1/CHANGES.rst 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/CHANGES.rst 2023-10-09 17:20:23.000000000 +0200
@@ -1,6 +1,18 @@
Changes
=======
+2.3
+---
+
+* Fixed publishing wheels for non-Linux platforms.
+
+2.2
+---
+
+* Tested with Python 3.9, 3.10, 3.11, and 3.12, no changes needed.
+* Dropped support for Python 3.5, 3.6, and 3.7.
+* Binary wheels are now available for all supported Python versions.
+
2.1
---
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/LICENSE.md new/siphashc-2.3/LICENSE.md
--- old/siphashc-2.1/LICENSE.md 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/LICENSE.md 2023-10-09 17:20:23.000000000 +0200
@@ -2,7 +2,7 @@
Copyright (c) 2014 Carlo Pires (python3 support)
-Copyright (c) 2017 - 2019 Michal ÄihaÅ (additional cleanups)
+Copyright © 2017â2023 Michal ÄihaÅ (additional cleanups)
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/MANIFEST.in new/siphashc-2.3/MANIFEST.in
--- old/siphashc-2.1/MANIFEST.in 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/MANIFEST.in 2023-10-09 17:20:23.000000000 +0200
@@ -3,3 +3,4 @@
include LICENSE.md
include README.rst
include CHANGES.rst
+include pyproject.toml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/PKG-INFO new/siphashc-2.3/PKG-INFO
--- old/siphashc-2.1/PKG-INFO 2020-09-02 09:58:02.000000000 +0200
+++ new/siphashc-2.3/PKG-INFO 2023-10-09 17:21:02.413396100 +0200
@@ -1,79 +1,82 @@
Metadata-Version: 2.1
Name: siphashc
-Version: 2.1
+Version: 2.3
Summary: Python module (in c) for siphash-2-4
-Home-page: https://github.com/WeblateOrg/siphashc
-Author: Michal ÄihaÅ
-Author-email: [email protected]
+Author-email: Michal ÄihaÅ <[email protected]>
License: ISC
+Project-URL: Funding, https://weblate.org/donate/
+Project-URL: Homepage, https://github.com/WeblateOrg/siphashc
Project-URL: Issue Tracker, https://github.com/WeblateOrg/siphashc/issues
Project-URL: Source Code, https://github.com/WeblateOrg/siphashc
Project-URL: Twitter, https://twitter.com/WeblateOrg
-Description: .. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
- :alt: Weblate
- :target: https://weblate.org/
- :height: 80px
-
- **Weblate is a copylefted libre software web-based continuous
localization system,
- used by over 1150 libre projects and companies in more than 115
countries.**
-
- siphashc is a Python module (in c) for siphash-2-4
-
- .. image:: https://img.shields.io/pypi/v/siphashc.svg
- :target: https://pypi.python.org/pypi/siphashc
- :alt: PyPI package
-
- Installation
- ~~~~~~~~~~~~
-
- Install using pip:
-
- .. code-block:: sh
-
- pip install siphashc
-
- Sources are available at <https://github.com/WeblateOrg/siphashc>.
-
- Introduction
- ~~~~~~~~~~~~
-
- siphashc is a python c-module for
- `siphash <https://131002.net/siphash/>`__, based on `floodberry's
- version <https://github.com/floodyberry/siphash>`__.
-
- It was merged from two versions of the module:
-
- - https://github.com/cactus/siphashc
- - https://github.com/carlopires/siphashc3
-
- Usage
- ~~~~~
-
- .. code:: python
-
- >>> from siphashc import siphash
- >>> siphash('sixteencharstrng', 'i need a hash of this')
- 10796923698683394048
-
- License
- ~~~~~~~
-
- Released under the `ISC
- license <https://choosealicense.com/licenses/isc/>`__. See
- ``LICENSE.md`` file for details.
-
-Keywords: siphash siphash-2-4
-Platform: UNKNOWN
+Keywords: siphash,siphash-2-4
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: ISC License (ISCL)
-Requires-Python: >=3.5
+Requires-Python: >=3.8
Description-Content-Type: text/x-rst
+License-File: LICENSE.md
+Provides-Extra: test
+Requires-Dist: pytest; extra == "test"
+
+.. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
+ :alt: Weblate
+ :target: https://weblate.org/
+ :height: 80px
+
+**Weblate is libre software web-based continuous localization system,
+used by over 2500 libre projects and companies in more than 165 countries.**
+
+siphashc is a Python module (in c) for siphash-2-4
+
+.. image:: https://img.shields.io/pypi/v/siphashc.svg
+ :target: https://pypi.python.org/pypi/siphashc
+ :alt: PyPI package
+
+Installation
+~~~~~~~~~~~~
+
+Install using pip:
+
+.. code-block:: sh
+
+ pip install siphashc
+
+Sources are available at <https://github.com/WeblateOrg/siphashc>.
+
+Introduction
+~~~~~~~~~~~~
+
+siphashc is a python c-module for
+`siphash <https://131002.net/siphash/>`__, based on `floodberry's
+version <https://github.com/floodyberry/siphash>`__.
+
+It was merged from two versions of the module:
+
+- https://github.com/cactus/siphashc
+- https://github.com/carlopires/siphashc3
+
+Usage
+~~~~~
+
+.. code:: pycon
+
+ >>> from siphashc import siphash
+ >>> siphash("sixteencharstrng", "i need a hash of this")
+ 10796923698683394048
+
+License
+~~~~~~~
+
+Released under the `ISC
+license <https://choosealicense.com/licenses/isc/>`__. See
+``LICENSE.md`` file for details.
+
+Contributing
+~~~~~~~~~~~~
+
+Contributions are welcome! See `documentation
<https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more
information.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/README.rst new/siphashc-2.3/README.rst
--- old/siphashc-2.1/README.rst 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/README.rst 2023-10-09 17:20:23.000000000 +0200
@@ -3,8 +3,8 @@
:target: https://weblate.org/
:height: 80px
-**Weblate is a copylefted libre software web-based continuous localization
system,
-used by over 1150 libre projects and companies in more than 115 countries.**
+**Weblate is libre software web-based continuous localization system,
+used by over 2500 libre projects and companies in more than 165 countries.**
siphashc is a Python module (in c) for siphash-2-4
@@ -38,10 +38,10 @@
Usage
~~~~~
-.. code:: python
+.. code:: pycon
>>> from siphashc import siphash
- >>> siphash('sixteencharstrng', 'i need a hash of this')
+ >>> siphash("sixteencharstrng", "i need a hash of this")
10796923698683394048
License
@@ -50,3 +50,8 @@
Released under the `ISC
license <https://choosealicense.com/licenses/isc/>`__. See
``LICENSE.md`` file for details.
+
+Contributing
+~~~~~~~~~~~~
+
+Contributions are welcome! See `documentation
<https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more
information.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/pyproject.toml
new/siphashc-2.3/pyproject.toml
--- old/siphashc-2.1/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/siphashc-2.3/pyproject.toml 2023-10-09 17:20:23.000000000 +0200
@@ -0,0 +1,68 @@
+[build-system]
+build-backend = "setuptools.build_meta"
+requires = ["setuptools>=61.2"]
+
+[project]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "License :: OSI Approved :: ISC License (ISCL)"
+]
+description = "Python module (in c) for siphash-2-4"
+keywords = ["siphash", "siphash-2-4"]
+name = "siphashc"
+requires-python = ">=3.8"
+version = "2.3"
+
+[[project.authors]]
+email = "[email protected]"
+name = "Michal ÄihaÅ"
+
+[project.license]
+text = "ISC"
+
+[project.optional-dependencies]
+test = ["pytest"]
+
+[project.readme]
+content-type = "text/x-rst"
+file = "README.rst"
+
+[project.urls]
+Funding = "https://weblate.org/donate/"
+Homepage = "https://github.com/WeblateOrg/siphashc"
+"Issue Tracker" = "https://github.com/WeblateOrg/siphashc/issues"
+"Source Code" = "https://github.com/WeblateOrg/siphashc"
+Twitter = "https://twitter.com/WeblateOrg"
+
+[tool.cibuildwheel]
+test-command = "pytest {project}/test_siphashc.py {project}/README.rst"
+test-extras = "test"
+
+[tool.isort]
+profile = "black"
+
+[tool.ruff]
+ignore = [
+ "ANN", # TODO: missing type annotations
+ "PLR2004", # TODO: Magic value used in comparison
+ "PT011", # TODO: `pytest.raises(ValueError)` is too broad
+ "S101", # CONFIG: using pytest
+ "D203", # CONFIG: incompatible with D211
+ "D212", # CONFIG: incompatible with D213
+ "T201" # WONTFIX: using print() (maybe add noqa)
+]
+output-format = "github"
+select = ["ALL"]
+
+[tool.ruff.mccabe]
+max-complexity = 16
+
+[tool.setuptools]
+include-package-data = false
+py-modules = []
+zip-safe = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/setup.cfg new/siphashc-2.3/setup.cfg
--- old/siphashc-2.1/setup.cfg 2020-09-02 09:58:02.000000000 +0200
+++ new/siphashc-2.3/setup.cfg 2023-10-09 17:21:02.417396300 +0200
@@ -1,8 +1,3 @@
-[flake8]
-per-file-ignores =
- benchmark.py:T001
-max-line-length = 88
-
[egg_info]
tag_build =
tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/setup.py new/siphashc-2.3/setup.py
--- old/siphashc-2.1/setup.py 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/setup.py 2023-10-09 17:20:23.000000000 +0200
@@ -1,51 +1,15 @@
#!/usr/bin/env python
"""Setup for the siphashc module."""
-import io
-import os.path
from setuptools import Extension, setup
-with io.open(
- os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8"
-) as readme:
- LONG_DESCRIPTION = readme.read()
-
setup(
- name="siphashc",
- version="2.1",
- author="Michal ÄihaÅ",
- author_email="[email protected]",
- description="Python module (in c) for siphash-2-4",
- long_description=LONG_DESCRIPTION,
- long_description_content_type="text/x-rst",
- keywords="siphash siphash-2-4",
- url="https://github.com/WeblateOrg/siphashc",
- project_urls={
- "Issue Tracker": "https://github.com/WeblateOrg/siphashc/issues",
- "Source Code": "https://github.com/WeblateOrg/siphashc",
- "Twitter": "https://twitter.com/WeblateOrg",
- },
- license="ISC",
- python_requires=">=3.5",
ext_modules=[
Extension(
- name="siphashc", sources=["siphashc.c", "siphash/siphash.c"],
language="c"
- )
- ],
- classifiers=[
- "Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "Operating System :: OS Independent",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.5",
- "Programming Language :: Python :: 3.6",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
- "Topic :: Software Development :: Libraries :: Python Modules",
- "License :: OSI Approved :: ISC License (ISCL)",
+ name="siphashc",
+ sources=["siphashc.c", "siphash/siphash.c"],
+ language="c",
+ ),
],
- test_suite="test_siphashc",
- zip_safe=True,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/siphashc.c new/siphashc-2.3/siphashc.c
--- old/siphashc-2.1/siphashc.c 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/siphashc.c 2023-10-09 17:20:23.000000000 +0200
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2013 Eli Janssen
* Copyright (c) 2014 Carlo Pires
- * Copyright (c) 2017 - 2020 Michal ÄihaÅ
+ * Copyright © 2017â2023 Michal ÄihaÅ
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/siphashc.egg-info/PKG-INFO
new/siphashc-2.3/siphashc.egg-info/PKG-INFO
--- old/siphashc-2.1/siphashc.egg-info/PKG-INFO 2020-09-02 09:58:02.000000000
+0200
+++ new/siphashc-2.3/siphashc.egg-info/PKG-INFO 2023-10-09 17:21:02.000000000
+0200
@@ -1,79 +1,82 @@
Metadata-Version: 2.1
Name: siphashc
-Version: 2.1
+Version: 2.3
Summary: Python module (in c) for siphash-2-4
-Home-page: https://github.com/WeblateOrg/siphashc
-Author: Michal ÄihaÅ
-Author-email: [email protected]
+Author-email: Michal ÄihaÅ <[email protected]>
License: ISC
+Project-URL: Funding, https://weblate.org/donate/
+Project-URL: Homepage, https://github.com/WeblateOrg/siphashc
Project-URL: Issue Tracker, https://github.com/WeblateOrg/siphashc/issues
Project-URL: Source Code, https://github.com/WeblateOrg/siphashc
Project-URL: Twitter, https://twitter.com/WeblateOrg
-Description: .. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
- :alt: Weblate
- :target: https://weblate.org/
- :height: 80px
-
- **Weblate is a copylefted libre software web-based continuous
localization system,
- used by over 1150 libre projects and companies in more than 115
countries.**
-
- siphashc is a Python module (in c) for siphash-2-4
-
- .. image:: https://img.shields.io/pypi/v/siphashc.svg
- :target: https://pypi.python.org/pypi/siphashc
- :alt: PyPI package
-
- Installation
- ~~~~~~~~~~~~
-
- Install using pip:
-
- .. code-block:: sh
-
- pip install siphashc
-
- Sources are available at <https://github.com/WeblateOrg/siphashc>.
-
- Introduction
- ~~~~~~~~~~~~
-
- siphashc is a python c-module for
- `siphash <https://131002.net/siphash/>`__, based on `floodberry's
- version <https://github.com/floodyberry/siphash>`__.
-
- It was merged from two versions of the module:
-
- - https://github.com/cactus/siphashc
- - https://github.com/carlopires/siphashc3
-
- Usage
- ~~~~~
-
- .. code:: python
-
- >>> from siphashc import siphash
- >>> siphash('sixteencharstrng', 'i need a hash of this')
- 10796923698683394048
-
- License
- ~~~~~~~
-
- Released under the `ISC
- license <https://choosealicense.com/licenses/isc/>`__. See
- ``LICENSE.md`` file for details.
-
-Keywords: siphash siphash-2-4
-Platform: UNKNOWN
+Keywords: siphash,siphash-2-4
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: ISC License (ISCL)
-Requires-Python: >=3.5
+Requires-Python: >=3.8
Description-Content-Type: text/x-rst
+License-File: LICENSE.md
+Provides-Extra: test
+Requires-Dist: pytest; extra == "test"
+
+.. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
+ :alt: Weblate
+ :target: https://weblate.org/
+ :height: 80px
+
+**Weblate is libre software web-based continuous localization system,
+used by over 2500 libre projects and companies in more than 165 countries.**
+
+siphashc is a Python module (in c) for siphash-2-4
+
+.. image:: https://img.shields.io/pypi/v/siphashc.svg
+ :target: https://pypi.python.org/pypi/siphashc
+ :alt: PyPI package
+
+Installation
+~~~~~~~~~~~~
+
+Install using pip:
+
+.. code-block:: sh
+
+ pip install siphashc
+
+Sources are available at <https://github.com/WeblateOrg/siphashc>.
+
+Introduction
+~~~~~~~~~~~~
+
+siphashc is a python c-module for
+`siphash <https://131002.net/siphash/>`__, based on `floodberry's
+version <https://github.com/floodyberry/siphash>`__.
+
+It was merged from two versions of the module:
+
+- https://github.com/cactus/siphashc
+- https://github.com/carlopires/siphashc3
+
+Usage
+~~~~~
+
+.. code:: pycon
+
+ >>> from siphashc import siphash
+ >>> siphash("sixteencharstrng", "i need a hash of this")
+ 10796923698683394048
+
+License
+~~~~~~~
+
+Released under the `ISC
+license <https://choosealicense.com/licenses/isc/>`__. See
+``LICENSE.md`` file for details.
+
+Contributing
+~~~~~~~~~~~~
+
+Contributions are welcome! See `documentation
<https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more
information.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/siphashc.egg-info/SOURCES.txt
new/siphashc-2.3/siphashc.egg-info/SOURCES.txt
--- old/siphashc-2.1/siphashc.egg-info/SOURCES.txt 2020-09-02
09:58:02.000000000 +0200
+++ new/siphashc-2.3/siphashc.egg-info/SOURCES.txt 2023-10-09
17:21:02.000000000 +0200
@@ -2,7 +2,7 @@
LICENSE.md
MANIFEST.in
README.rst
-setup.cfg
+pyproject.toml
setup.py
siphashc.c
test_siphashc.py
@@ -12,5 +12,6 @@
siphashc.egg-info/PKG-INFO
siphashc.egg-info/SOURCES.txt
siphashc.egg-info/dependency_links.txt
+siphashc.egg-info/requires.txt
siphashc.egg-info/top_level.txt
siphashc.egg-info/zip-safe
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/siphashc.egg-info/requires.txt
new/siphashc-2.3/siphashc.egg-info/requires.txt
--- old/siphashc-2.1/siphashc.egg-info/requires.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/siphashc-2.3/siphashc.egg-info/requires.txt 2023-10-09
17:21:02.000000000 +0200
@@ -0,0 +1,3 @@
+
+[test]
+pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/siphashc-2.1/test_siphashc.py
new/siphashc-2.3/test_siphashc.py
--- old/siphashc-2.1/test_siphashc.py 2020-09-02 09:57:52.000000000 +0200
+++ new/siphashc-2.3/test_siphashc.py 2023-10-09 17:20:23.000000000 +0200
@@ -1,6 +1,7 @@
"""Test for siphashc module."""
import unittest
+import pytest
from siphashc import siphash
@@ -10,18 +11,18 @@
def test_hash(self):
"""Test simple hashing."""
result = siphash("sixteencharstrng", "i need a hash of this")
- self.assertEqual(10796923698683394048, result)
+ assert result == 10796923698683394048
result = siphash("0123456789ABCDEF", "a")
- self.assertEqual(12398370950267227270, result)
+ assert result == 12398370950267227270
def test_errors(self):
"""Test error handling."""
- with self.assertRaises(ValueError):
+ with pytest.raises(ValueError):
siphash("not long enough", "a")
- with self.assertRaises(ValueError):
+ with pytest.raises(ValueError):
siphash("toooooooooooooooooooooooo long", "a")
- with self.assertRaises(ValueError):
+ with pytest.raises(ValueError):
siphash("", "a")
def test_reference_vectors(self):
@@ -95,5 +96,5 @@
k = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
message = ""
for i in range(64):
- self.assertEqual(siphash(k, message), vectors[i])
+ assert siphash(k, message) == vectors[i]
message += chr(i)