Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb6fe24

Browse files
committed
Unpin pyparsing.
1 parent abfc353 commit fb6fe24

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def test_fontinfo():
250250
(r'$\leftF$', r'Expected a delimiter'),
251251
(r'$\rightF$', r'Unknown symbol: \rightF'),
252252
(r'$\left(\right$', r'Expected a delimiter'),
253-
(r'$\left($', r'Expected "\right"'),
253+
# PyParsing 2 uses double quotes, PyParsing 3 uses single quotes and an
254+
# extra backslash.
255+
(r'$\left($', re.compile(r'Expected ("|\'\\)\\right["\']')),
254256
(r'$\dfrac$', r'Expected \dfrac{num}{den}'),
255257
(r'$\dfrac{}{}$', r'Expected \dfrac{num}{den}'),
256258
(r'$\overset$', r'Expected \overset{annotation}{body}'),
@@ -281,8 +283,8 @@ def test_fontinfo():
281283
)
282284
def test_mathtext_exceptions(math, msg):
283285
parser = mathtext.MathTextParser('agg')
284-
285-
with pytest.raises(ValueError, match=re.escape(msg)):
286+
match = re.escape(msg) if isinstance(msg, str) else msg
287+
with pytest.raises(ValueError, match=match):
286288
parser.parse(math)
287289

288290

requirements/doc/doc-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ipython
1313
ipywidgets
1414
numpydoc>=0.8
1515
packaging>=20
16-
pyparsing<3.0.0
1716
mpl-sphinx-theme
1817
sphinxcontrib-svg2pdfconverter>=1.1.0
1918
sphinx-gallery>=0.10

requirements/testing/all.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
certifi
44
coverage
5-
pyparsing<3.0.0
65
pytest!=4.6.0,!=5.4.0
76
pytest-cov
87
pytest-rerunfailures

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def make_release_tree(self, base_dir, files):
319319
"numpy>=1.17",
320320
"packaging>=20.0",
321321
"pillow>=6.2.0",
322-
"pyparsing>=2.2.1,<3.0.0",
322+
"pyparsing>=2.2.1",
323323
"python-dateutil>=2.7",
324324
] + (
325325
# Installing from a git checkout.

0 commit comments

Comments
 (0)