Skip to content

Commit

Permalink
Testlib: Remove Python 2 code
Browse files Browse the repository at this point in the history
  • Loading branch information
tyll committed Oct 23, 2020
1 parent a10d27d commit d3e8a7e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/testlib.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2018 Red Hat, Inc.
# Copyright 2018,2020 Red Hat, Inc.
#
# This file is part of ansible-nmstate.
#
Expand All @@ -18,10 +18,7 @@
#

""" common code for testing the nmstate Ansible modules """
try:
from unittest import mock
except ImportError: # py2
import mock
from unittest import mock

ANSIBLE_MOCK_MODULES = {}
ANSIBLE_MOCK_MODULES["ansible"] = mock.Mock()
Expand Down

0 comments on commit d3e8a7e

Please sign in to comment.