You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2010/02/24 23:14:28 UTC

svn commit: r915999 - /incubator/cassandra/trunk/test/system/__init__.py

Author: jbellis
Date: Wed Feb 24 22:14:27 2010
New Revision: 915999

URL: http://svn.apache.org/viewvc?rev=915999&view=rev
Log:
don't require avro in order to test thrift.  patch by jbellis

Modified:
    incubator/cassandra/trunk/test/system/__init__.py

Modified: incubator/cassandra/trunk/test/system/__init__.py
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/system/__init__.py?rev=915999&r1=915998&r2=915999&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/system/__init__.py (original)
+++ incubator/cassandra/trunk/test/system/__init__.py Wed Feb 24 22:14:27 2010
@@ -22,8 +22,11 @@
 from thrift.transport import TSocket
 from thrift.transport import THttpClient
 from thrift.protocol import TBinaryProtocol
-import avro.ipc as ipc
-import avro.protocol as protocol
+try:
+    import avro.ipc as ipc
+    import avro.protocol as protocol
+except ImportError:
+    pass
 
 # add cassandra directory to sys.path
 L = os.path.abspath(__file__).split(os.path.sep)[:-3]