mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Make Python tests pass in Python 3.11
Summary: Mostly just changes to tests to make them more flexible. Test Plan: Python tests pass locally with 3.10 and 3.11. Making tests run in CI on these versions will happen in grist-core. Reviewers: paulfitz Reviewed By: paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D3978
This commit is contained in:
@@ -61,8 +61,8 @@ class Address:
|
||||
return {'US': 'North America', 'UK': 'Europe'}.get(rec.country, 'N/A')
|
||||
|
||||
def badSyntax(rec, table):
|
||||
# for a in b
|
||||
# for a in
|
||||
# 10
|
||||
raise SyntaxError('invalid syntax', ('usercode', 1, 11, u'for a in b'))
|
||||
raise SyntaxError('invalid syntax', ('usercode', 1, 9, u'for a in'))
|
||||
======================================================================
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user