NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/41057: creating a file on tmpfs can work strangely
The following reply was made to PR kern/41057; it has been noted by GNATS.
From: Alan Barrett <apb%cequrux.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/41057: creating a file on tmpfs can work strangely
Date: Sun, 5 Apr 2009 20:55:15 +0200
On Sun, 22 Mar 2009, apb%cequrux.com@localhost wrote:
> open(name, "w").write("stuff")
> try:
> assert os.path.exists(name)
> os.remove(name)
> assert not os.path.exists(name)
> except KeyboardInterrupt:
> raise
> except:
> pass
That "pass" statement will make it carry on without reporting a problem
after an error. Delte the "except: pass" lines to make it abort when
there's a failure.
Home |
Main Index |
Thread Index |
Old Index