avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r1691173 - in /avro/trunk: CHANGES.txt lang/py3/avro/schema.py lang/py3/avro/tests/run_tests.py
Date Wed, 15 Jul 2015 11:35:20 GMT
Author: tomwhite
Date: Wed Jul 15 11:35:20 2015
New Revision: 1691173

URL: http://svn.apache.org/r1691173
Log:
AVRO-1673. Python 3 EnumSchema changes the order of symbols. Contributed by Marcin Białoń.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/py3/avro/schema.py
    avro/trunk/lang/py3/avro/tests/run_tests.py

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1691173&r1=1691172&r2=1691173&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Wed Jul 15 11:35:20 2015
@@ -175,6 +175,9 @@ Trunk (not yet released)
 
     AVRO-1688. Ruby test_union(TestIO) is failing. (tomwhite)
 
+    AVRO-1673. Python 3 EnumSchema changes the order of symbols.
+    (Marcin Białoń via tomwhite)
+
 Avro 1.7.7 (23 July 2014)
 
   NEW FEATURES

Modified: avro/trunk/lang/py3/avro/schema.py
URL: http://svn.apache.org/viewvc/avro/trunk/lang/py3/avro/schema.py?rev=1691173&r1=1691172&r2=1691173&view=diff
==============================================================================
--- avro/trunk/lang/py3/avro/schema.py (original)
+++ avro/trunk/lang/py3/avro/schema.py Wed Jul 15 11:35:20 2015
@@ -752,7 +752,7 @@ class EnumSchema(NamedSchema):
         other_props=other_props,
     )
 
-    self._props['symbols'] = tuple(sorted(symbol_set))
+    self._props['symbols'] = symbols
     if doc is not None:
       self._props['doc'] = doc
 

Modified: avro/trunk/lang/py3/avro/tests/run_tests.py
URL: http://svn.apache.org/viewvc/avro/trunk/lang/py3/avro/tests/run_tests.py?rev=1691173&r1=1691172&r2=1691173&view=diff
==============================================================================
--- avro/trunk/lang/py3/avro/tests/run_tests.py (original)
+++ avro/trunk/lang/py3/avro/tests/run_tests.py Wed Jul 15 11:35:20 2015
@@ -54,6 +54,7 @@ from avro.tests.test_ipc import *
 from avro.tests.test_protocol import *
 from avro.tests.test_schema import *
 from avro.tests.test_script import *
+from avro.tests.test_enum import *
 
 
 def SetupLogging():



Mime
View raw message