Skip to content

Commit

Permalink
try again?
Browse files Browse the repository at this point in the history
  • Loading branch information
csm10495 committed Sep 16, 2023
1 parent 63907f9 commit 8a14f39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,12 @@ def test_customization_modules_on_startup(self):

eyecatcher = f'EXECUTED_{module_name}'

with open(customize_path, 'w') as f:
f.write(f'print("{eyecatcher}")')
try:
with open(customize_path, 'w') as f:
f.write(f'print("{eyecatcher}")')
except PermissionError:
# Can't modify system site packages depending on the system configuration
continue

output = subprocess.check_output([sys.executable, '-c', '""'])
self.assertIn(eyecatcher, output.decode('utf-8'))
Expand Down

0 comments on commit 8a14f39

Please sign in to comment.