Skip to content

Commit

Permalink
add xfailing test case for aio-libs#635
Browse files Browse the repository at this point in the history
  • Loading branch information
Nothing4You committed Jan 28, 2022
1 parent 5a9e240 commit 8ee2eae
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/test_sscursor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio

import pytest
from pymysql import NotSupportedError
from pymysql import NotSupportedError, InternalError

from aiomysql import ProgrammingError, InterfaceError
from aiomysql.cursors import SSCursor
Expand Down Expand Up @@ -188,3 +188,19 @@ async def read_cursor():

with pytest.raises(InterfaceError):
await conn.cursor(SSCursor)


@pytest.mark.xfail(
reason="https://github.com/aio-libs/aiomysql/issues/635",
raises=InternalError,
strict=True,
)
@pytest.mark.run_loop
async def test_sscursor_scroll_absolute(connection):
conn = connection
await _prepare(conn)
async with conn.cursor(SSCursor) as cursor:
await cursor.execute("select 1")
await cursor.execute("select 2")
ret = await cursor.fetchone()
assert (1,) == ret

0 comments on commit 8ee2eae

Please sign in to comment.