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

Tests fail to collect with ddt==1.4.3 #7066

Closed
jakelishman opened this issue Sep 27, 2021 · 1 comment · Fixed by #7067
Closed

Tests fail to collect with ddt==1.4.3 #7066

jakelishman opened this issue Sep 27, 2021 · 1 comment · Fixed by #7067
Labels
bug Something isn't working
Milestone

Comments

@jakelishman
Copy link
Member

Information

  • Qiskit Terra version: any
  • Python version: any
  • Operating system: any

What is the current behavior?

The test suite may fail to collect now for all OSes on CI, due to the new ddt version 1.4.3 (released about an hour ago). This appears related to datadriventests/ddt#92 - the signature of ddt.idata changed in a backwards-incompatible manner, and there's no way to support both signatures idata(iterable) and idata(iterable, length) cleanly.

Steps to reproduce the problem

Run the test suite with ddt=1.4.3.

What is the expected behavior?

Tests do not fail to collect.

Suggested solutions

Arguably this is a bug/mishandling of the user interface in ddt, but we can work around it by either forbidding use of ddt=1.4.3 in constraints.txt, or swapping all uses of ddt.idata(iterable) to ddt.data(*iterable).

@jakelishman jakelishman added the bug Something isn't working label Sep 27, 2021
@jakelishman
Copy link
Member Author

Having looked into it a bit closer, I think this is a slight "interface bug" in ddt, and the best thing for us to do is just disallow ddt==1.4.3 in the constraints, and I'll work with the ddt team to see if we can have an interface fix merged upstream. For now, see datadriventests/ddt#97.

@jakelishman jakelishman changed the title Tests fail to collect with ddt=1.4.3 Tests fail to collect with ddt==1.4.3 Sep 27, 2021
@mergify mergify bot closed this as completed in #7067 Sep 27, 2021
@kdk kdk added this to the 0.19 milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants