bundlerepository: test self.tempfile field, not tempfile module
This error was introduced in
680fe77ab5b8.
test-mq-qnew: handle Mac OS X error strings.
On Mac OS X, opening a file called '42/' results in ENOENT and not
EISDIR if the directory doesn't exist.