We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d06ae commit 865539bCopy full SHA for 865539b
tests/functional/test_wheel.py
@@ -120,6 +120,22 @@ def test_pip_wheel_builds_when_no_binary_set(script, data):
120
assert "Building wheel for simple" in str(res), str(res)
121
122
123
+def test_pip_wheel_readonly_cache(script, data, tmpdir):
124
+ cache_dir = tmpdir / "cache"
125
+ cache_dir.mkdir()
126
+ os.chmod(cache_dir, 0o400) # read-only cache
127
+ # Check that the wheel package is ignored
128
+ res = script.pip(
129
+ 'wheel', '--no-index',
130
+ '-f', data.find_links,
131
+ '--cache-dir', cache_dir,
132
+ 'simple==3.0',
133
+ allow_stderr_warning=True,
134
+ )
135
+ assert res.returncode == 0
136
+ assert "caching wheels has been disabled" in str(res), str(res)
137
+
138
139
def test_pip_wheel_builds_editable_deps(script, data):
140
"""
141
Test 'pip wheel' finds and builds dependencies of editables
0 commit comments