Closed rasup closed 6 years ago
When I run python2 setup.py test
I get a whole bunch of (I don't know why):
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/rasmus/code/pid/pid/__init__.py", line 201, in close
if self.filename and os.path.isfile(self.filename) and cleanup:
AttributeError: 'NoneType' object has no attribute 'path'
Thanks !
My attempt at fixing #15 which turned out to be simpler than I thought - unless I've missed something. There's also a test like you asked for. I haven't written a ton of Python unittests so maybe there's a nicer way to do it.