Skip to content

Commit

Permalink
make doctest more lenientfor sqlalchemy 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tdamsma committed Apr 20, 2021
1 parent 475ba9e commit b8a9ca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/sqlalchemy/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ to the DB.
>>> conn = session.connection()
>>> users = Base.metadata.tables['test_users']
>>> conn.execute(users.update(users.c.name=='bob'), name='ben')
<sqlalchemy.engine...ResultProxy object at ...>
<sqlalchemy.engine... object at ...>
>>> from zope.sqlalchemy import mark_changed
>>> mark_changed(session)
>>> transaction.commit()
Expand All @@ -206,7 +206,7 @@ session in the 'changed' state initially.
>>> session = Session()
>>> conn = session.connection()
>>> conn.execute(users.update(users.c.name=='ben'), name='bob')
<sqlalchemy.engine...ResultProxy object at ...>
<sqlalchemy.engine... object at ...>
>>> transaction.commit()
>>> session = Session()
>>> str(session.query(User).all()[0].name)
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist =
lint
py{27,35,36}-sqlalchemy{09,10}
py{27,35,36,37,38,39}-sqlalchemy{11,12,13}
py{37,38,39}-sqlalchemy{14}
coverage

[testenv]
Expand Down

0 comments on commit b8a9ca0

Please sign in to comment.