Merge remote-tracking branch 'origin/pyfdbgenerators' into pyfdbgenerators

This commit is contained in:
Alex Miller 2020-05-11 13:20:27 -07:00
commit 4b65da6db7

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() < 630, "Pre-6.3, a decorators may wrap a function that yield"
assert fdb.get_api_version() < 630, "Pre-6.3, a decorator may wrap a function that yields"
except ValueError as e:
assert fdb.get_api_version() >= 630, "Post-6.3, a decorator should throw if wrapped function yields"