Skip to content

module 'unittest.mock' has no attribute '__version__' #56

@jorti

Description

@jorti

With Python 3.9.0a3, the tests fail to run with this error:

+ /usr/bin/python3 run_tests.py --unit
======================================================================
                             INITIALISING                             
======================================================================
  stem version...                            1.8.0
  python version...                          3.9.0a3
  operating system...                        Linux
  cryptography version...                    missing
  mock version...                            failed
module 'unittest.mock' has no attribute '__version__'

It looks like __version__ was removed:
python/cpython#17977

Originally reported downstream in Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=1797690

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions