avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r882393 - in /hadoop/avro/trunk: CHANGES.txt src/test/py/interoptests.py
Date Fri, 20 Nov 2009 03:04:07 GMT
Author: cutting
Date: Fri Nov 20 03:04:07 2009
New Revision: 882393

URL: http://svn.apache.org/viewvc?rev=882393&view=rev
Log:
AVRO-222.  Fix Python interop tests broken by AVRO-201.  Contributed by Jeff Hammerbacher.

Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/src/test/py/interoptests.py

Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=882393&r1=882392&r2=882393&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Fri Nov 20 03:04:07 2009
@@ -124,6 +124,9 @@
 
     AVRO-211. Nested schema does not get parsed in C++. (sbanacho)
 
+    AVRO-222. Fix Python interop tests broken by AVRO-201.
+    (Jeff Hammerbacher via cutting)
+
 Avro 1.2.0 (14 October 2009)
 
   INCOMPATIBLE CHANGES

Modified: hadoop/avro/trunk/src/test/py/interoptests.py
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/src/test/py/interoptests.py?rev=882393&r1=882392&r2=882393&view=diff
==============================================================================
--- hadoop/avro/trunk/src/test/py/interoptests.py (original)
+++ hadoop/avro/trunk/src/test/py/interoptests.py Fri Nov 20 03:04:07 2009
@@ -21,6 +21,7 @@
 import avro.genericio as genericio
 import avro.reflectio as reflectio
 import avro.reflectipc as reflectipc
+import avro.datafile as datafile
 import testio, testipc, testioreflect, testipcreflect
 
 _BLOCKINGFILE_DIR = "build/test/blocking-data-files/"
@@ -39,7 +40,7 @@
     origschm = schema.parse(open("src/test/schemata/interop.avsc").read())
     for file in os.listdir(_DATAFILE_DIR):
       print "Validating:", file.__str__()
-      dr = io.DataFileReader(open(_DATAFILE_DIR+file, "rb"), 
+      dr = datafile.DataFileReader(open(_DATAFILE_DIR+file, "rb"), 
                              self.__datumreader())
       count = int(dr.getmeta("count"))
       decodedSchm = schema.parse(dr.getmeta("schema"))



Mime
View raw message