-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I'm working with Python 3.5.2 on WIndows 10.
Code like the following:
if __name__ == '__main__':
with testing.postgresql.Postgresql() as postgresql:
print("url={}".format(postgresql.url()))
print("data directory={}".format(postgresql.get_data_directory()))
run(postgresql.url())
run does nothing..
Receiving the following error:
Traceback (most recent call last):
File "C:/Users/adelo/IdeaProjects/pr_data/test_orm.py", line 66, in <module>
run(postgresql.url())
File "C:\Users\adelo\venv\paymentrouter\lib\site-packages\testing\common\database.py", line 257, in __exit__
url=postgresql://[email protected]:57380/test
data directory=C:\Users\adelo\AppData\Local\Temp\tmpbnndk7ie\data
self.stop()
File "C:\Users\adelo\venv\paymentrouter\lib\site-packages\testing\common\database.py", line 197, in stop
self.terminate(_signal)
File "C:\Users\adelo\venv\paymentrouter\lib\site-packages\testing\postgresql.py", line 116, in terminate
super(Postgresql, self).terminate(signal.SIGINT)
File "C:\Users\adelo\venv\paymentrouter\lib\site-packages\testing\common\database.py", line 212, in terminate
self.child_process.send_signal(_signal)
File "c:\users\adelo\appdata\local\programs\python\python35-32\Lib\subprocess.py", line 1351, in send_signal
raise ValueError("Unsupported signal: {}".format(sig))
ValueError: Unsupported signal: 2
ERROR: testing.common.database: failed to shutdown the server automatically.
Any server processes and files might have been leaked. Please remove them and call the stop() certainly
Process finished with exit code 1
So its saying that signal.SIGINT is not supported.. is that a Windows thing??
jluttine, rubenflamshepherd, dtracers and mbrameld
Metadata
Metadata
Assignees
Labels
No labels