question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test_plot_barriers failing locally

See original GitHub issue

Information

  • Qiskit Terra version: master
  • Python version:
  • Operating system: osx

What is the current behavior?


FAIL: test_plot_barriers (python.visualization.test_circuit_matplotlib_drawer.TestMatplotlibDrawer)
Test to see that plotting barriers works - if it is set to False, no

AssertionError: 'Error: Image files did not match.\n  RMS Value: 3.844171635643379\n  Expected:  \n    /var/folders/rn/vtkjhjc14412w6lx6d292rdw0000gn/T/tmpltoyc87x.png\n  Actual:    \n    /Users/paul/Desktop/Github_repos/qiskit-terra/test/python/visualization/references/matplotlib_barriers_ref.png\n  Difference:\n    /Users/paul/Desktop/Github_repos/qiskit-terra/test/python/visualization/references/matplotlib_barriers_ref-failed-diff.png\n  Tolerance: \n    0.0001' is not None

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nonhermitiancommented, Jun 5, 2019

This now appears to be resolved.

0reactions
maddy-todcommented, Jun 3, 2019

This could be a whitespace issue - with different matplotlib backends on OSX sometimes there is more/less whitespace around the circuit than there is in the reference image. This test is being modified with the removal of temp files in #2514, so it might be worth waiting until that is merged and seeing if that fixes this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSTests fail on build server after passing locally
The issue is that my unit tests pass locally but some fail on our build server. The oddity about this is that if...
Read more >
Why tests pass locally but fail in Jenkins | Object Partners
Symptom: Tests using filenames are passing locally but failing in ... The problem is that your Jenkins instance is most likely running on...
Read more >
Tests pass locally but "fail" on CI (i.e. test suites fail ... - GitHub
I cleared the package and repository cache and reran the build but the error still persists. Here's the output from the latest Travis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found