Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas committed Feb 29, 2024
1 parent 6a9501f commit 00e9f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ def test_simplify(self):
self.assertEqual(optimizer.simplify.gen(anon_quoted), '"anonymous" x,y')

with self.assertRaises(ValueError) as e:
invalid_anonymous = exp.Anonymous(this=5)
optimizer.simplify.gen(invalid_anonymous)
anon_invalid = exp.Anonymous(this=5)
optimizer.simplify.gen(anon_invalid)

self.assertIn("Anonymous.this expects a str or an Identifier, got 'int'.", str(e.exception))

Expand Down

0 comments on commit 00e9f6d

Please sign in to comment.