Skip to content

Commit

Permalink
- test_var_view.py: ruff compliance- use set literals instead of set(…
Browse files Browse the repository at this point in the history
…) constructor
  • Loading branch information
Kevin-Prichard committed Oct 18, 2024
1 parent 14075f8 commit 4a24f19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pudb/test/test_var_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,17 @@ def test_set(self):
and more or less equivalent to class str
"""
expr = WatchExpression("a")
self.assertIn(expr, set(["a"]))
self.assertIn(expr, {"a"})

# test set membership
we_a = WatchExpression("a")
we_b = WatchExpression("b")
test_set1 = set([we_a, we_b])
test_set1 = {we_a, we_b}
self.assertIn(we_a, test_set1)
self.assertIn(we_b, test_set1)

# test equivalent sets
test_set2 = set([we_b, we_a])
test_set2 = {we_b, we_a}
self.assertEqual(test_set1, test_set2)
self.assertIn(we_a, test_set2)
self.assertIn(we_b, test_set2)
Expand Down

0 comments on commit 4a24f19

Please sign in to comment.