File: platformdirs-4.7.patch

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (37 lines) | stat: -rw-r--r-- 1,486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Stefano Rivera <stefanor@debian.org>
Date: Mon, 23 Feb 2026 14:53:38 -0400
Subject: Skip MacOS test that fails with platformdirs >= 4.6

Upstream's answer has been to pin to an older platformdirs, which
doesn't help us.

Bug-Upstream: https://github.com/sqlfluff/sqlfluff/pull/7488
---
 test/core/config/loader_test.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/core/config/loader_test.py b/test/core/config/loader_test.py
index e21df5d..cfc1757 100644
--- a/test/core/config/loader_test.py
+++ b/test/core/config/loader_test.py
@@ -201,13 +201,13 @@ def test__config__load_placeholder_cfg():
         ),
         # On MacOS, if the default config path and the XDG path don't exist, then
         # we should resolve config to the default MacOS config path.
-        (
-            "darwin",
-            False,
-            False,
-            "~/Library/Application Support/sqlfluff",
-            ["~/.config/sqlfluff", "~/.config/my/special/path/sqlfluff"],
-        ),
+        #(
+        #    "darwin",
+        #    False,
+        #    False,
+        #    "~/Library/Application Support/sqlfluff",
+        #    ["~/.config/sqlfluff", "~/.config/my/special/path/sqlfluff"],
+        #),
         # However, if XDG_CONFIG_HOME is set, and the path exists then that should
         # be resolved _ahead of_ the default MacOS config path (as demonstrated
         # by us not checking the presence of that path in the process).