kopia lustrzana https://github.com/jazzband/icalevents
Forgot to remove debug prints
rodzic
58facc0276
commit
e7afadeeb4
|
@ -81,18 +81,14 @@ DTSTART:19180331T020000
|
|||
os.chmod(os.getcwd(), 0o500)
|
||||
|
||||
# Assert log message is being thrown
|
||||
logger = logging.getLogger()
|
||||
try:
|
||||
with self.assertLogs(level="WARNING") as cm:
|
||||
# Create new ICalDownload instance which will try to create the .cache directory
|
||||
ical_download = icalevents.icaldownload.ICalDownload(http=None)
|
||||
finally:
|
||||
# Change directory back to old permissions
|
||||
print(oldPerms)
|
||||
os.chmod(os.getcwd(), oldPerms)
|
||||
|
||||
print(os.stat(os.getcwd()))
|
||||
|
||||
# Delete tmp dir
|
||||
os.chdir("..")
|
||||
shutil.rmtree("tmp")
|
||||
|
|
Ładowanie…
Reference in New Issue