0.17.0: pytest is failing
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- security, testing-qa
调研方向
Start with src/ecdsa/test_malformed_sigs.py, especially the list comprehension using hashlib.new(name) during test collection. Reproduce the pytest run in the reported Python 3.8 environment and inspect how unavailable algorithms such as whirlpool are handled. Done means test collection succeeds while the available hash algorithms remain covered.
由索引模型根据 Issue 内容生成。
描述
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation- because I'm calling
buildwith--no-isolationI'm using during all processes only locally installed modules - install .whl file in </install/prefix>
- run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-ecdsa-0.17.0-5.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-ecdsa-0.17.0-5.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-ecdsa-python-ecdsa-0.17.0
plugins: hypothesis-6.36.0
collected 1464 items / 1 error / 1463 selected
================================================================================== ERRORS ==================================================================================
____________________________________________________________ ERROR collecting src/ecdsa/test_malformed_sigs.py _____________________________________________________________
/usr/lib64/python3.8/hashlib.py:157: in __hash_new
return _hashlib.new(name, data)
E ValueError: [digital envelope routines] initialization error
During handling of the above exception, another exception occurred:
src/ecdsa/test_malformed_sigs.py:41: in <module>
hash_and_size = [
src/ecdsa/test_malformed_sigs.py:42: in <listcomp>
(name, hashlib.new(name).digest_size) for name in algorithms_available
/usr/lib64/python3.8/hashlib.py:163: in __hash_new
return __get_builtin_constructor(name)(data)
/usr/lib64/python3.8/hashlib.py:120: in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type whirlpool
========================================================================= short test summary info ==========================================================================
ERROR src/ecdsa/test_malformed_sigs.py - ValueError: unsupported hash type whirlpool
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 1.17s =============================================================================
- 主要语言
- Python
- 星标
- 973
- 派生
- 343
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tlsfuzzer/python-ecdsa 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
tlsfuzzer/python-ecdsa#381 ·
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 45/100
tlsfuzzer/python-ecdsa#349 · 1 条评论 ·
-
feature help wanted
难度 4/5 3-5 天 新手友好度 35/100
tlsfuzzer/python-ecdsa#348 · 1 条评论 ·
-
bug help wanted
难度 3/5 1-2 天 新手友好度 35/100
tlsfuzzer/python-ecdsa#341 · 1 条评论 ·
-
maintenance
难度 5/5 一周以上 新手友好度 25/100
tlsfuzzer/python-ecdsa#340 · 4 条评论 · 1 个 reaction ·
查看 tlsfuzzer/python-ecdsa 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100