diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-19 20:10:46 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-19 20:11:12 +0200 |
commit | 0710c6bab76a146804105637c05e1835be74243a (patch) | |
tree | 0c8abc8c0741cac98179b3c8ecb32fe374dd1d60 | |
parent | 5d25685971859f2009a1b1840ebf5a2b044e5285 (diff) | |
download | qutebrowser-0710c6bab76a146804105637c05e1835be74243a.tar.gz qutebrowser-0710c6bab76a146804105637c05e1835be74243a.zip |
Adjust configfiles test for Python 3.9
-rw-r--r-- | tests/unit/config/test_configfiles.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index 01a12c709..4c0b6305c 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -887,7 +887,9 @@ class TestConfigPy: assert tblines[0] == "Traceback (most recent call last):" assert tblines[-1] == "SyntaxError: invalid syntax" assert " +" in tblines - assert " ^" in tblines + # Starting with the new PEG-based parser in Python 3.9, the caret + # points at the location *after* the + + assert " ^" in tblines or " ^" in tblines def test_unhandled_exception(self, confpy): confpy.write("1/0") |