Revision: 5009
http://jython.svn.sourceforge.net/jython/?rev=5009&view=rev
Author: zyasoft
Date: 2008-07-28 11:51:51 +0000 (Mon, 28 Jul 2008)
Log Message:
-----------
test__rawffi will now skip if it cannot load ctypes_test, a test
dynamic library that we do not yet have an ant task to create.
Modified Paths:
--------------
branches/asm/Lib/test/test__rawffi.py
Modified: branches/asm/Lib/test/test__rawffi.py
===================================================================
--- branches/asm/Lib/test/test__rawffi.py 2008-07-28 06:40:09 UTC (rev 5008)
+++ branches/asm/Lib/test/test__rawffi.py 2008-07-28 11:51:51 UTC (rev 5009)
@@ -1,6 +1,14 @@
import unittest
from test import test_support
+# xxx - forces a skip in the case we haven't built ctypes_test module in ant (which is not yet a task as of now)
+
+try:
+ import _rawffi
+ _rawffi.CDLL("ctypes_test")
+except:
+ raise ImportError
+
class RawFFITestCase(unittest.TestCase):
def setUp(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|