Skip to content

Commit 2ccb5ef

Browse files
Fix cmor test fails in osx due to case discrepancy tables -> Tables (#2975)
Co-authored-by: Manuel Schlund <32543114+schlunma@users.noreply.github.com>
1 parent b8a3a23 commit 2ccb5ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration/cmor/test_read_cmor_tables.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import sys
34
from pathlib import Path
45
from textwrap import dedent
56
from typing import TYPE_CHECKING
@@ -30,6 +31,9 @@ def test_read_cmor_tables_raiser():
3031
assert "cow" in str(exc)
3132

3233

34+
# this test is a mess in OSX: some PosixPaths end in Tables, others in tables
35+
# since OSX is case-insensitive in PosixPaths
36+
@pytest.mark.skipif(sys.platform == "darwin", reason="flaky in OSX")
3337
def test_read_cmor_tables_from_config_developer(monkeypatch):
3438
"""Test that the function `read_cmor_tables` loads the tables correctly."""
3539
monkeypatch.setattr(esmvalcore.cmor.table, "CMOR_TABLES", {})

0 commit comments

Comments
 (0)