Skip to content

Commit 4e4b15a

Browse files
committed
skip tests on Python < 3.11 instead
1 parent f90371c commit 4e4b15a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/core/compile/sqlglot/test_compile_window.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import sys
16+
1517
import numpy as np
16-
from packaging import version
1718
import pandas as pd
1819
import pytest
19-
import sqlglot
2020

2121
import bigframes.pandas as bpd
2222

2323
pytest.importorskip("pytest_snapshot")
2424

2525

26-
if version.Version(sqlglot.__version__) < version.Version("25.0.0"):
26+
if sys.version_info < (3, 12):
2727
pytest.skip(
28-
"Skip tests for sqlglot < 25.0.0 due to SQL formatting issues",
28+
"Skipping test due to inconsistent SQL formatting on Python < 3.12.",
2929
allow_module_level=True,
3030
)
3131

0 commit comments

Comments
 (0)