Skip to content

Commit b1e007a

Browse files
minor
1 parent d744c5a commit b1e007a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test_relational_operand.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,17 @@ def test_join():
132132

133133
@staticmethod
134134
def test_issue_376():
135-
Test3.delete_quick()
136-
Test3.insert((
135+
tab = Test3()
136+
tab.delete_quick()
137+
tab.insert((
137138
(1, '%%%'),
138139
(2, 'one%'),
139140
(3, 'one')
140141
))
141-
assert_equal(len(Test3 & 'value="%%%"'), 1)
142-
assert_equal(len(Test3 & {'value': "%%%"}), 1)
143-
assert_equal(len(Test3 & 'value like "o%"'), 2)
144-
assert_equal(len(Test3 & 'value like "o%%"'), 2)
142+
assert_equal(len(tab & 'value="%%%"'), 1)
143+
assert_equal(len(tab & {'value': "%%%"}), 1)
144+
assert_equal(len(tab & 'value like "o%"'), 2)
145+
assert_equal(len(tab & 'value like "o%%"'), 2)
145146

146147
@staticmethod
147148
def test_issue_463():

0 commit comments

Comments
 (0)