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 failing with Python 2.7 #39

Closed
brouhaha opened this issue Aug 20, 2018 · 2 comments
Closed

Test failing with Python 2.7 #39

brouhaha opened this issue Aug 20, 2018 · 2 comments

Comments

@brouhaha
Copy link

  • cattrs version: 0.9.0
  • Python version: 2.7.15, 3.6.5
  • Operating System: Fedora 28

Description

I packaged cattrs for Fedora a while back, using 0.6.0, and building for Python 2.7 and 3.6. Now I'm trying to update the package to 0.9.0 to support Python 3.7 for Fedora 29. However, even when building on Fedora 28 with Python 2.7.15 and 3.6.5, when running the tests py.test is giving me an error about an unexpected keyword suppress_health_checks.

What I Did

command to start the build:

rpmbuild -ba python-cattrs.spec

excerpt of output:

+ py.test-2.7 -v
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/_pytest/config.py", line 366, in _importconftest
    mod = conftestpath.pyimport()
  File "/usr/lib/python2.7/site-packages/py/_path/local.py", line 668, in pyimport
    __import__(modname)
  File "/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py", line 213, in load_module
    py.builtin.exec_(co, mod.__dict__)
  File "/usr/lib/python2.7/site-packages/py/_builtin.py", line 221, in exec_
    exec2(obj, globals, locals)
  File "<string>", line 7, in exec2
  File "/home/eric/rpmbuild/BUILD/cattrs-0.9.0/tests/conftest.py", line 14, in <module>
    "tests", suppress_health_check=(HealthCheck.too_slow,)
TypeError: register_profile() got an unexpected keyword argument 'suppress_health_check'
ERROR: could not load /home/eric/rpmbuild/BUILD/cattrs-0.9.0/tests/conftest.py
@Tinche
Copy link
Member

Tinche commented Aug 21, 2018

Hm, which version of Hypothesis do you have installed?

@eric-appion
Copy link

Hypothesis 3.44.24 is the latest in Fedora 28. Hypothesis 3.66.11 will be in Fedora 29; I'll give it a try with that.

@Tinche Tinche closed this as completed Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants