public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/sqlalchemy/files: 0.9.7-test-fix.patch
@ 2014-07-30  2:08 Ian Delaney (idella4)
  0 siblings, 0 replies; only message in thread
From: Ian Delaney (idella4) @ 2014-07-30  2:08 UTC (permalink / raw
  To: gentoo-commits

idella4     14/07/30 02:08:48

  Added:                0.9.7-test-fix.patch
  Log:
  upgrade test deps, test phase
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

Revision  Changes    Path
1.1                  dev-python/sqlalchemy/files/0.9.7-test-fix.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sqlalchemy/files/0.9.7-test-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sqlalchemy/files/0.9.7-test-fix.patch?rev=1.1&content-type=text/plain

Index: 0.9.7-test-fix.patch
===================================================================
From 405c223ae50e78dacac08783c414619db20df0b7 Mon Sep 17 00:00:00 2001
From: Mike Bayer <mike_mp@zzzcomputing.com>
Date: Tue, 29 Jul 2014 13:32:05 -0400
Subject: [PATCH] - Fixed 0.9.7 regression caused by :ticket:`3067` in
 conjunction with a mis-named unit test such that so-called "schema" types
 like :class:`.Boolean` and :class:`.Enum` could no longer be pickled. fixes
 #3144

diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 6114460..6cbf583 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -3276,6 +3276,9 @@ class _defer_name(_truncated_label):
         else:
             return super(_defer_name, cls).__new__(cls, value)
 
+    def __reduce__(self):
+        return self.__class__, (util.text_type(self), )
+
 
 class _defer_none_name(_defer_name):
     """indicate a 'deferred' name that was ultimately the value None."""
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
index 03d3997..efa0f90 100644
--- a/test/sql/test_types.py
+++ b/test/sql/test_types.py
@@ -234,9 +234,9 @@ class TypeAffinityTest(fixtures.TestBase):
         assert t1.dialect_impl(d)._type_affinity is postgresql.UUID
 
 
-class PickleMetadataTest(fixtures.TestBase):
+class PickleTypesTest(fixtures.TestBase):
 
-    def testmeta(self):
+    def test_pickle_types(self):
         for loads, dumps in picklers():
             column_types = [
                 Column('Boo', Boolean()),





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-30  2:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30  2:08 [gentoo-commits] gentoo-x86 commit in dev-python/sqlalchemy/files: 0.9.7-test-fix.patch Ian Delaney (idella4)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox