]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: don't fail unit tests if can't import AsyncMock
authorAdam King <adking@redhat.com>
Mon, 30 Aug 2021 20:18:19 +0000 (16:18 -0400)
committerAdam King <adking@redhat.com>
Tue, 31 Aug 2021 16:51:00 +0000 (12:51 -0400)
commit92c0039fd51b4ddfbd3cf64ddce298188d33940a
tree56e71dc1ad18a4e9d98f85c9ac9a6727811d63a9
parenta2827edf48e194a21026b4cf146b64663677109f
mgr/cephadm: don't fail unit tests if can't import AsyncMock

AsyncMock was added in python 3.8. We don't want unit tests to
be failing if somebody tries running them with pytohn 3.7. Our
Jenkins job should be unaffected and still run the test.

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/tests/test_cephadm.py