| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -250,7 +250,9 @@ def test_fontinfo(): | |||
| 250 | 250 | (r'$\leftF$', r'Expected a delimiter'), | |
| 251 | 251 | (r'$\rightF$', r'Unknown symbol: \rightF'), | |
| 252 | 252 | (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["\']')), | ||
| 254 | 256 | (r'$\dfrac$', r'Expected \dfrac{num}{den}'), | |
| 255 | 257 | (r'$\dfrac{}{}$', r'Expected \dfrac{num}{den}'), | |
| 256 | 258 | (r'$\overset$', r'Expected \overset{annotation}{body}'), | |
@@ -281,8 +283,8 @@ def test_fontinfo(): | |||
| 281 | 283 | ) | |
| 282 | 284 | def test_mathtext_exceptions(math, msg): | |
| 283 | 285 | 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): | ||
| 286 | 288 | parser.parse(math) | |
| 287 | 289 | ||
| 288 | 290 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,6 @@ ipython | |||
| 13 | 13 | ipywidgets | |
| 14 | 14 | numpydoc>=0.8 | |
| 15 | 15 | packaging>=20 | |
| 16 | - pyparsing<3.0.0 | ||
| 17 | 16 | mpl-sphinx-theme | |
| 18 | 17 | sphinxcontrib-svg2pdfconverter>=1.1.0 | |
| 19 | 18 | sphinx-gallery>=0.10 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | 3 | certifi | |
| 4 | 4 | coverage | |
| 5 | - pyparsing<3.0.0 | ||
| 6 | 5 | pytest!=4.6.0,!=5.4.0 | |
| 7 | 6 | pytest-cov | |
| 8 | 7 | pytest-rerunfailures | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -319,7 +319,7 @@ def make_release_tree(self, base_dir, files): | |||
| 319 | 319 | "numpy>=1.17", | |
| 320 | 320 | "packaging>=20.0", | |
| 321 | 321 | "pillow>=6.2.0", | |
| 322 | - "pyparsing>=2.2.1,<3.0.0", | ||
| 322 | + "pyparsing>=2.2.1", | ||
| 323 | 323 | "python-dateutil>=2.7", | |
| 324 | 324 | ] + ( | |
| 325 | 325 | # Installing from a git checkout. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments