mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 13:27:40 -02:30
convert py2 -> py3
This commit is contained in:
@@ -40,7 +40,7 @@ def IS_TESTING(argv=None):
|
||||
|
||||
|
||||
if "pytest" in sys.modules:
|
||||
import mock
|
||||
from unittest import mock
|
||||
with mock.patch('__main__.__builtins__.dir', return_value=[]):
|
||||
import ldap
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user