Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a33f3d

Browse files
authored
Merge pull requestalexmojaki#57 from alexmojaki/spawn
multiprocessing.set_start_method("spawn") earlier to make tests work on Ubuntu
2 parentsa38a7ad +27bf63b commit4a33f3d

File tree

5 files changed

+388
-1406
lines changed

5 files changed

+388
-1406
lines changed

‎backend/book/settings.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/2.2/ref/settings/
1111
"""
12-
12+
importmultiprocessing
1313
importos
1414
importsys
1515
frompathlibimportPath
@@ -156,3 +156,9 @@
156156
# }
157157
# }
158158
}
159+
160+
try:
161+
multiprocessing.set_start_method("spawn")
162+
exceptRuntimeError:
163+
# noinspection PyArgumentList
164+
assertmultiprocessing.get_start_method()=="spawn"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp