summaryrefslogtreecommitdiff
path: root/test/sql/select.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-11-04 22:04:22 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-11-04 22:04:22 +0000
commit303e753b2d674d89f8277e8cd06dd0acf7094549 (patch)
tree8f2c2630d8cad83e2047a57b10f5a35b27789116 /test/sql/select.py
parent8ebc8ee5bae0f4bef465e8b5b4b46609cfdebc10 (diff)
downloadsqlalchemy-303e753b2d674d89f8277e8cd06dd0acf7094549.tar.gz
- func. objects can be pickled/unpickled [ticket:844]
Diffstat (limited to 'test/sql/select.py')
-rw-r--r--test/sql/select.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sql/select.py b/test/sql/select.py
index ace455702..1999b52a0 100644
--- a/test/sql/select.py
+++ b/test/sql/select.py
@@ -691,6 +691,9 @@ FROM mytable, myothertable WHERE foo.id = foofoo(lala) AND datetime(foo) = Today
# test None becomes NULL
self.assert_compile(func.my_func(1,2,None,3), "my_func(:my_func, :my_func_1, NULL, :my_func_2)")
+ # test pickling
+ self.assert_compile(util.pickle.loads(util.pickle.dumps(func.my_func(1, 2, None, 3))), "my_func(:my_func, :my_func_1, NULL, :my_func_2)")
+
# assert func raises AttributeError for __bases__ attribute, since its not a class
# fixes pydoc
try: