We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a77cba commit 69d9b64Copy full SHA for 69d9b64
cardinal_pythonlib/sqlalchemy/tests/schema_tests.py
@@ -28,6 +28,7 @@
28
29
import logging
30
import unittest
31
+import sys
32
33
from sqlalchemy import event, inspect, select
34
from sqlalchemy.dialects.mssql.base import MSDialect, DECIMAL as MS_DECIMAL
@@ -697,6 +698,12 @@ def test_ddl_dialect_conditionality_2(self) -> None:
697
698
bind=self.engine, future=True
699
)() # type: Session
700
701
+ if sys.version_info < (3, 10):
702
+ log.warning(
703
+ "Unable to use unittest.TestCase.assertNoLogs; "
704
+ "needs Python 3.10; skipping test"
705
+ )
706
+ return
707
with self.assertNoLogs(level=logging.INFO):
708
with if_sqlserver_disable_constraints(session, tablename="person"):
709
pass
0 commit comments