Skip to content

Commit dfbc6ef

Browse files
Update Lib/test/test_site.py
Co-authored-by: Ronald Oussoren <[email protected]>
1 parent 348130d commit dfbc6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_addsitedir_hidden_pth_file(self):
213213
try:
214214
pth_file.create()
215215
st = os.stat(pth_file.file_path)
216-
os.chflags(pth_file.file_path, st.st_flags | stat.UF_IMMUTABLE)
216+
os.chflags(pth_file.file_path, st.st_flags | stat.UF_HIDDEN)
217217
site.addsitedir(pth_file.base_dir, set())
218218
self.assertNotIn(site.makepath(pth_file.good_dir_path)[0], sys.path)
219219
self.assertIn(pth_file.base_dir, sys.path)

0 commit comments

Comments
 (0)