mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	Merge pull request #1127 from rafiss/iso-level-finally-block
Handle failure in setup of IsolationLevelsTestCase
This commit is contained in:
		
						commit
						cecff195fc
					
				| 
						 | 
				
			
			@ -567,8 +567,10 @@ class IsolationLevelsTestCase(ConnectingTestCase):
 | 
			
		|||
            cur.execute("drop table isolevel;")
 | 
			
		||||
        except psycopg2.ProgrammingError:
 | 
			
		||||
            conn.rollback()
 | 
			
		||||
        try:
 | 
			
		||||
            cur.execute("create table isolevel (id integer);")
 | 
			
		||||
            conn.commit()
 | 
			
		||||
        finally:
 | 
			
		||||
            conn.close()
 | 
			
		||||
 | 
			
		||||
    def test_isolation_level(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user