Skip to content

Commit ef999f4

Browse files
committed
Ignore temporary extracted copies of cacert.pem when testing with a zipapp
1 parent a57668e commit ef999f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/lib/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ def __init__(
591591
def _ignore_file(self, fn: str) -> bool:
592592
if fn.endswith("__pycache__") or fn.endswith(".pyc"):
593593
result = True
594+
elif self.zipapp and fn.endswith("cacert.pem"):
595+
# Temporary copies of cacert.pem are extracted
596+
# when running from a zipapp
597+
result = True
594598
else:
595599
result = super()._ignore_file(fn)
596600
return result

0 commit comments

Comments
 (0)