mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi
This commit is contained in:
parent
ebc4d577de
commit
0139298786
4 changed files with 6 additions and 8 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import collections
|
||||
import mock
|
||||
import os
|
||||
import sys
|
||||
from ansible.compat.tests import unittest
|
||||
|
||||
from ansible.compat.tests import mock
|
||||
from ansible.compat.tests import unittest
|
||||
|
||||
try:
|
||||
from ansible.modules.core.packaging.os.apt import (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue