@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue_timeout(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue_timeout_override(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_max_lifetime(dsn):
pids = []
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue_timeout(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue_timeout_override(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_max_lifetime(dsn):
pids: List[int] = []
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue_timeout(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_queue_timeout_override(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
def test_max_lifetime(dsn):
with pool.ConnectionPool(dsn, min_size=1, max_lifetime=0.2) as p:
sleep(0.1)
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue_timeout(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_queue_timeout_override(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="backend pid")
async def test_max_lifetime(dsn):
async with pool.AsyncConnectionPool(dsn, min_size=1, max_lifetime=0.2) as p:
await asyncio.sleep(0.1)
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="notify")
def test_notifies(conn, dsn):
nconn = psycopg.connect(dsn, autocommit=True)
npid = nconn.pgconn.backend_pid
@pytest.mark.slow
+@pytest.mark.crdb("skip", reason="cancel")
def test_cancel(conn):
errors: List[Exception] = []
t.join()
+@pytest.mark.crdb("skip", reason="pg_terminate_backend")
@pytest.mark.slow
def test_cancel_stream(conn):
errors: List[Exception] = []
@pytest.mark.skipif(
sys.platform == "win32", reason="don't know how to Ctrl-C on Windows"
)
+@pytest.mark.crdb("skip", reason="cancel")
def test_ctrl_c(dsn):
if sys.platform == "win32":
sig = int(signal.CTRL_C_EVENT)
@pytest.mark.slow
@pytest.mark.timing
+@pytest.mark.crdb("skip", reason="notify")
async def test_notifies(aconn, dsn):
nconn = await psycopg.AsyncConnection.connect(dsn, autocommit=True)
npid = nconn.pgconn.backend_pid
@pytest.mark.slow
+@pytest.mark.crdb("skip", reason="cancel")
async def test_cancel(aconn):
async def worker():
cur = aconn.cursor()
@pytest.mark.slow
+@pytest.mark.crdb("skip", reason="pg_terminate_backend")
async def test_identify_closure(dsn):
async def closer():
await asyncio.sleep(0.2)
@pytest.mark.skipif(
sys.platform == "win32", reason="don't know how to Ctrl-C on Windows"
)
+@pytest.mark.crdb("skip", reason="cancel")
async def test_ctrl_c(dsn):
script = f"""\
import signal