From 303e753b2d674d89f8277e8cd06dd0acf7094549 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 4 Nov 2007 22:04:22 +0000 Subject: - func. objects can be pickled/unpickled [ticket:844] --- test/sql/select.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/sql/select.py') 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: -- cgit v1.2.1