summaryrefslogtreecommitdiff
path: root/test/profiling
diff options
context:
space:
mode:
authorAnts Aasma <ants.aasma@gmail.com>2007-10-16 22:57:05 +0000
committerAnts Aasma <ants.aasma@gmail.com>2007-10-16 22:57:05 +0000
commit6bbc7dd157faf5b513852286ba656fa6723cd2d6 (patch)
tree805fc72fd0053fa4eeedc1b72e9ab55651a177c2 /test/profiling
parentcc0e7c796f61e17cb7050de0701905c65ce558eb (diff)
downloadsqlalchemy-6bbc7dd157faf5b513852286ba656fa6723cd2d6.tar.gz
change the in_ API to accept a sequence or a selectable [ticket:750]
Diffstat (limited to 'test/profiling')
-rw-r--r--test/profiling/zoomark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/profiling/zoomark.py b/test/profiling/zoomark.py
index 4d73e92b6..5c22fd9d8 100644
--- a/test/profiling/zoomark.py
+++ b/test/profiling/zoomark.py
@@ -176,13 +176,13 @@ class ZooMarkTest(testing.AssertMixin):
# In operator (containedby)
assert len(fulltable(Animal.select(Animal.c.Species.like('%pede%')))) == 2
- assert len(fulltable(Animal.select(Animal.c.Species.in_('Lion', 'Tiger', 'Bear')))) == 3
+ assert len(fulltable(Animal.select(Animal.c.Species.in_(['Lion', 'Tiger', 'Bear'])))) == 3
# Try In with cell references
class thing(object): pass
pet, pet2 = thing(), thing()
pet.Name, pet2.Name = 'Slug', 'Ostrich'
- assert len(fulltable(Animal.select(Animal.c.Species.in_(pet.Name, pet2.Name)))) == 2
+ assert len(fulltable(Animal.select(Animal.c.Species.in_([pet.Name, pet2.Name])))) == 2
# logic and other functions
assert len(fulltable(Animal.select(Animal.c.Species.like('Slug')))) == 1