tk0miya / testing.postgresql

Apache License 2.0
290 stars 46 forks source link

'NoneType' object has no attribute 'path' in Postgresql.__del__ #3

Closed nbonnotte closed 8 years ago

nbonnotte commented 8 years ago

Great package! It works very well.

I just wanted to let you know: at the end of my tests, even the successful ones, I always get the message:

Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method Postgresql.__del__ of <testing.postgresql.Postgresql object at 0x7f656550a4d0>> ignored

Am I doing something wrong?

tk0miya commented 8 years ago

Thank you for reporting. but I could not reproduce the problem.

Probably, it caused by gabage collection mechanism. I try to fix the problem with the commit above. Could you try it and send feedback please?

nbonnotte commented 8 years ago

Yep, that solved it. Thanks!

tk0miya commented 8 years ago

Thanks. I released v1.2.1 including this fix :-)