Skip to content

Commit db1b8f9

Browse files
committed
Update homebrew test to get actual Python version
1 parent acdccb7 commit db1b8f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/test_appdirs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ def test_site_config_dirs_osx(self, monkeypatch: pytest.MonkeyPatch) -> None:
113113
def test_site_config_dirs_osx_homebrew(
114114
self, monkeypatch: pytest.MonkeyPatch
115115
) -> None:
116+
python_version = f"{sys.version_info[0]}.{sys.version_info[1]}"
116117
monkeypatch.setattr(
117118
sys,
118119
"prefix",
119-
"/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13",
120+
f"/opt/homebrew/opt/python@{python_version}/Frameworks/Python.framework/Versions/{python_version}",
120121
)
121122

122123
assert appdirs.site_config_dirs("pip") == [

0 commit comments

Comments
 (0)