Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failures: TypeError: 'NoneType' object does not support item assignment #3445

Closed
0-wiz-0 opened this issue Mar 13, 2017 · 2 comments
Closed

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Mar 13, 2017

With 1.8.1, I see two new test failures with python-3.6 on NetBSD in an ASCII locale:

___________________________________________________________ ERROR collecting tests/hazmat/backends/test_openssl.py ___________________________________________________________
tests/hazmat/backends/test_openssl.py:622: in <module>
    class TestOpenSSLDHSerialization(object):
tests/hazmat/backends/test_openssl.py:628: in TestOpenSSLDHSerialization
    load_nist_vectors))
tests/utils.py:77: in load_vectors_from_file
    return loader(vector_file)
tests/utils.py:111: in load_nist_vectors
    test_data[name.lower()] = value.encode("ascii")
E   TypeError: 'NoneType' object does not support item assignment
____________________________________________________________ ERROR collecting tests/hazmat/primitives/test_dh.py _____________________________________________________________
tests/hazmat/primitives/test_dh.py:146: in <module>
    class TestDH(object):
tests/hazmat/primitives/test_dh.py:163: in TestDH
    load_nist_vectors))
tests/utils.py:77: in load_vectors_from_file
    return loader(vector_file)
tests/utils.py:111: in load_nist_vectors
    test_data[name.lower()] = value.encode("ascii")
E   TypeError: 'NoneType' object does not support item assignment
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================== 4 skipped, 2 error in 22.86 seconds =====================================================================
*** Error code 2
@alex
Copy link
Member

alex commented Mar 17, 2017

Unfortunately none of us have a NetBSD env, so we could use some assistance in debugging this.

Do the tests for the vector loaders pass?

@0-wiz-0
Copy link
Author

0-wiz-0 commented Mar 21, 2017

When I just now ran the tests again, they all worked:
83280 passed, 3243 skipped in 246.76 seconds
The machine has had a lot of memory pressure lately, could that explain it?
Anyway, I'll come back if the problem resurfaces. Thanks.

@0-wiz-0 0-wiz-0 closed this as completed Mar 21, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants