Skip to content

Commit

Permalink
Fix test that broke due to error message change (#465)
Browse files Browse the repository at this point in the history
Some error messages were changed in #6209.  When I first saw this
failing, I was very worried that it was a state bug introduced by
  • Loading branch information
msullivan committed Oct 6, 2023
1 parent 718f86d commit ef71c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ async def test_dup_link_prop_name(self):
''')

async def test_transaction_state(self):
with self.assertRaisesRegex(edgedb.QueryError, "cannot assign to id"):
with self.assertRaisesRegex(edgedb.QueryError, "cannot assign to.*id"):
async for tx in self.client.transaction():
async with tx:
await tx.execute('''
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sync_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def test_sync_banned_transaction(self):
self.client.execute('start transaction')

def test_transaction_state(self):
with self.assertRaisesRegex(edgedb.QueryError, "cannot assign to id"):
with self.assertRaisesRegex(edgedb.QueryError, "cannot assign to.*id"):
for tx in self.client.transaction():
with tx:
tx.execute('''
Expand Down

0 comments on commit ef71c0a

Please sign in to comment.