[pypy-svn] r61465 - pypy/pysqlite2/test

antocuni at codespeak.net antocuni at codespeak.net
Fri Jan 30 17:52:52 CET 2009


Author: antocuni
Date: Fri Jan 30 17:52:51 2009
New Revision: 61465

Modified:
   pypy/pysqlite2/test/hooks.py
Log:
skip some tests about unsupported features



Modified: pypy/pysqlite2/test/hooks.py
==============================================================================
--- pypy/pysqlite2/test/hooks.py	(original)
+++ pypy/pysqlite2/test/hooks.py	Fri Jan 30 17:52:51 2009
@@ -1,4 +1,4 @@
-#-*- coding: ISO-8859-1 -*-
+#-*- coding: iso-8859-1 -*-
 # pysqlite2/test/hooks.py: tests for various SQLite-specific hooks
 #
 # Copyright (C) 2006-2007 Gerhard Häring <gh at ghaering.de>
@@ -23,6 +23,7 @@
 
 import os, unittest
 import pysqlite2.dbapi2 as sqlite
+from test.test_support import impl_detail
 
 class CollationTests(unittest.TestCase):
     def setUp(self):
@@ -31,6 +32,7 @@
     def tearDown(self):
         pass
 
+    @impl_detail("unsupported feature")
     def CheckCreateCollationNotCallable(self):
         con = sqlite.connect(":memory:")
         try:
@@ -39,6 +41,7 @@
         except TypeError, e:
             self.failUnlessEqual(e.args[0], "parameter must be callable")
 
+    @impl_detail("unsupported feature")
     def CheckCreateCollationNotAscii(self):
         con = sqlite.connect(":memory:")
         try:
@@ -76,6 +79,7 @@
         except sqlite.OperationalError, e:
             self.failUnlessEqual(e.args[0].lower(), "no such collation sequence: mycoll")
 
+    @impl_detail("unsupported feature")
     def CheckCollationRegisterTwice(self):
         """
         Register two different collation functions under the same name.
@@ -90,6 +94,7 @@
         if result[0][0] != 'b' or result[1][0] != 'a':
             self.fail("wrong collation function is used")
 
+    @impl_detail("unsupported feature")
     def CheckDeregisterCollation(self):
         """
         Register a collation, then deregister it. Make sure an error is raised if we try
@@ -106,6 +111,7 @@
                 self.fail("wrong OperationalError raised")
 
 class ProgressTests(unittest.TestCase):
+    @impl_detail("unsupported feature")
     def CheckProgressHandlerUsed(self):
         """
         Test that the progress handler is invoked once it is set.
@@ -121,7 +127,7 @@
             """)
         self.failUnless(progress_calls)
 
-
+    @impl_detail("unsupported feature")
     def CheckOpcodeCount(self):
         """
         Test that the opcode argument is respected.
@@ -145,6 +151,7 @@
         second_count = len(progress_calls)
         self.failUnless(first_count > second_count)
 
+    @impl_detail("unsupported feature")
     def CheckCancelOperation(self):
         """
         Test that returning a non-zero value stops the operation in progress.
@@ -161,6 +168,7 @@
             curs.execute,
             "create table bar (a, b)")
 
+    @impl_detail("unsupported feature")
     def CheckClearHandler(self):
         """
         Test that setting the progress handler to None clears the previously set handler.



More information about the Pypy-commit mailing list