From 286cd4584f0e7b2ca628e9d7c2956a4e37d4858b Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Tue, 16 Jan 2024 01:27:09 +0000 Subject: [PATCH] gwsumm.tests: update usage of GWpy's has_tex (#390) the HAS_TEX global variable was removed in 3.0.8 --- gwsumm/tests/test_plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwsumm/tests/test_plot.py b/gwsumm/tests/test_plot.py index 0742f26c..7c0cda52 100644 --- a/gwsumm/tests/test_plot.py +++ b/gwsumm/tests/test_plot.py @@ -27,7 +27,7 @@ from gwpy.detector import ChannelList from gwpy.plot import Plot -from gwpy.plot.tex import HAS_TEX +from gwpy.plot.tex import has_tex from gwpy.segments import Segment from .. import plot as gwsumm_plot @@ -281,7 +281,7 @@ def test_parse_plot_kwargs(self, plot): pytest.param( True, [{'label': r'TEST\_WITH\_UNDERSCORE'}, {'label': r'TEST\_QUOTED'}], - marks=pytest.mark.skipif(not HAS_TEX, + marks=pytest.mark.skipif(not has_tex(), reason='TeX is not available'), ), ])