Fixed error with import
The import workaround didn't actually work. Python does not handle "import x as y; from y import z" and it worked only by accident.
This commit is contained in:
parent
2d736f5aa8
commit
cb82606328
@ -27,9 +27,10 @@ import multiprocessing
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import unittest.mock as mock
|
import unittest.mock as mock
|
||||||
|
from unittest.mock import call
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import mock
|
import mock
|
||||||
from mock import call
|
from mock import call
|
||||||
|
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user