Blame SOURCES/sympy-circuitplot.patch

5a83ed
--- sympy-sympy-1.8/sympy/physics/quantum/tests/test_circuitplot.py.orig	2021-04-09 16:29:50.000000000 -0600
5a83ed
+++ sympy-sympy-1.8/sympy/physics/quantum/tests/test_circuitplot.py	2021-04-12 13:27:55.241417177 -0600
5a83ed
@@ -4,7 +4,9 @@ from sympy.physics.quantum.gate import C
5a83ed
 from sympy.external import import_module
5a83ed
 from sympy.testing.pytest import skip
5a83ed
 
5a83ed
-mpl = import_module('matplotlib')
5a83ed
+mpl = import_module(
5a83ed
+    'matplotlib', import_kwargs={'fromlist': ['pyplot']},
5a83ed
+    catch=(RuntimeError,))  # This is raised in environments that have no display.
5a83ed
 
5a83ed
 def test_render_label():
5a83ed
     assert render_label('q0') == r'$\left|q0\right\rangle$'