mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Updated the sqlite3 module to the external pysqlite 2.2.2 version.
This commit is contained in:
		
							parent
							
								
									5ef9d9fdb9
								
							
						
					
					
						commit
						3e99c0ad64
					
				
					 22 changed files with 310 additions and 313 deletions
				
			
		|  | @ -134,6 +134,13 @@ def setUp(self): | |||
|     def tearDown(self): | ||||
|         self.con.close() | ||||
| 
 | ||||
|     def CheckFuncErrorOnCreate(self): | ||||
|         try: | ||||
|             self.con.create_function("bla", -100, lambda x: 2*x) | ||||
|             self.fail("should have raised an OperationalError") | ||||
|         except sqlite.OperationalError: | ||||
|             pass | ||||
| 
 | ||||
|     def CheckFuncRefCount(self): | ||||
|         def getfunc(): | ||||
|             def f(): | ||||
|  | @ -251,6 +258,13 @@ def tearDown(self): | |||
|         #self.con.close() | ||||
|         pass | ||||
| 
 | ||||
|     def CheckAggrErrorOnCreate(self): | ||||
|         try: | ||||
|             self.con.create_function("bla", -100, AggrSum) | ||||
|             self.fail("should have raised an OperationalError") | ||||
|         except sqlite.OperationalError: | ||||
|             pass | ||||
| 
 | ||||
|     def CheckAggrNoStep(self): | ||||
|         cur = self.con.cursor() | ||||
|         cur.execute("select nostep(t) from test") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gerhard Häring
						Gerhard Häring