Update bindings/python/tests/tester.py

Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
This commit is contained in:
Alex Miller 2020-02-06 16:57:14 -08:00 committed by GitHub
parent d688536a7c
commit 986905f3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ def test_fdb_transactional_generator(db):
@fdb.transactional
def function_that_yields(tr):
yield 0
assert fdb.get_api_version() < 700, "Pre-7.0, a decorators may wrap a function that yield"
assert fdb.get_api_version() < 700, "Pre-7.0, a decorator may wrap a function that yields"
except ValueError as e:
assert fdb.get_api_version() >= 700, "Post-7.0, a decorator should throw if wrapped function yields"