Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import testing.postgresql
if __name__ == '__main__':
postgresql = testing.postgresql.Postgresql()
try:
print('run server')
finally:
postgresql.stop()
postgresql.cleanup()
=>
Exception ignored in: <bound method Postgresql.__del__ of <testing.postgresql.Postgresql object at 0x10dc62780>>
Traceback (most recent call last):
File "/Users/denis/.virtualenvs/libres/lib/python3.4/site-packages/testing/postgresql.py", line 72, in __del__
File "/Users/denis/.virtualenvs/libres/lib/python3.4/site-packages/testing/postgresql.py", line 182, in stop
File "/Users/denis/.virtualenvs/libres/lib/python3.4/site-packages/testing/postgresql.py", line 186, in terminate
File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
File "<frozen importlib._bootstrap>", line 2199, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 2132, in _find_spec
TypeError: 'NoneType' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.