Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

Liste des GroupesRevenir à cl python 
Sujet : Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 24. Oct 2024, 15:27:32
Autres entêtes
Organisation : Stefan Ram
Message-ID : <mock-20241024151020@ram.dialup.fu-berlin.de>
References : 1
c.buhtz@posteo.jp wrote or quoted:
Maybe you have an idea what is the intention behind this error raised by
an "assert" statement inside "shutil.rmtree()".

  Instead of banking on TemporaryDirectory's auto-cleanup, you
  might wanna take a stab at nuking the directory post-test with
  a more bare-bones approach like os.rmdir() or roll your own
  cleanup function.

  Or you could wrap the TemporaryDirectory usage in a try-except
  block to catch and log any hiccups during cleanup, so the
  test can keep truckin' even if that cleanup goes sideways



Date Sujet#  Auteur
24 Oct 24 * shutil.rmtree() fails when used in Fedora (rpm) "mock" environment2c.buhtz
24 Oct 24 `- Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal