77
88import asyncpg
99from asyncpg import _testbase as tb
10-
10+ import unittest
1111ERRNUM = 'unexpected number of attributes of composite type'
1212ERRTYP = 'unexpected data type of composite type'
1313
@@ -27,6 +27,7 @@ def _check_statements_are_closed(self, statements):
2727 self .assertGreater (len (statements ), 0 )
2828 self .assertTrue (all (s .closed for s in statements ))
2929
30+ @unittest .skip ('cached plan must not change result type' )
3031 async def test_prepare_cache_invalidation_silent (self ):
3132 await self .con .execute ('CREATE TABLE tab1(a int, b int)' )
3233
@@ -48,6 +49,7 @@ async def test_prepare_cache_invalidation_silent(self):
4849 finally :
4950 await self .con .execute ('DROP TABLE tab1' )
5051
52+ @unittest .skip ('cached plan must not change result type' )
5153 async def test_prepare_cache_invalidation_in_transaction (self ):
5254 await self .con .execute ('CREATE TABLE tab1(a int, b int)' )
5355
@@ -75,6 +77,7 @@ async def test_prepare_cache_invalidation_in_transaction(self):
7577 finally :
7678 await self .con .execute ('DROP TABLE tab1' )
7779
80+ @unittest .skip ('UNLISTEN statement is not yet supported.' )
7881 async def test_prepare_cache_invalidation_in_pool (self ):
7982 pool = await self .create_pool (database = 'postgres' ,
8083 min_size = 2 , max_size = 2 )
@@ -306,8 +309,9 @@ async def test_type_cache_invalidation_on_change_attr(self):
306309 await self .con .execute ('DROP TABLE tab1' )
307310 await self .con .execute ('DROP TYPE typ1' )
308311
312+ @unittest .skip ('UNLISTEN statement is not yet supported.' )
309313 async def test_type_cache_invalidation_in_pool (self ):
310- await self .con .execute ('CREATE DATABASE testdb' )
314+ await self .con .execute ('CREATE DATABASE IF NOT EXISTS testdb' )
311315 pool = await self .create_pool (database = 'postgres' ,
312316 min_size = 2 , max_size = 2 )
313317
0 commit comments