File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -904,14 +904,16 @@ async def async_session(
904904
905905
906906def pytest_collection_modifyitems (config : pytest .Config , items : list [pytest .Item ]) -> None :
907- """Skip relationship filter tests for Spanner and Oracle engines .
907+ """Skip relationship filter tests for engines with schema isolation issues .
908908
909- These engines have issues with the UUID test models:
909+ These engines have issues with the UUID test models in xdist groups :
910910 - Spanner: Doesn't support direct UNIQUE constraints (used by Tag model)
911911 - Oracle: Has schema isolation issues with xdist groups
912+ - MySQL (asyncmy): Has schema isolation issues with xdist groups
912913 """
913914 skip_spanner = pytest .mark .skip (reason = "Spanner doesn't support direct UNIQUE constraints" )
914915 skip_oracle = pytest .mark .skip (reason = "Oracle has schema isolation issues with relationship filter tests" )
916+ skip_mysql = pytest .mark .skip (reason = "MySQL has schema isolation issues with relationship filter tests" )
915917
916918 for item in items :
917919 # Only process items from test_relationship_filters.py
@@ -925,3 +927,7 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
925927 # Check for Oracle engine
926928 if "oracle" in item .nodeid .lower ():
927929 item .add_marker (skip_oracle )
930+
931+ # Check for MySQL engine (asyncmy)
932+ if "asyncmy" in item .nodeid .lower () or "mysql" in item .nodeid .lower ():
933+ item .add_marker (skip_mysql )
You can’t perform that action at this time.
0 commit comments