diff --git a/sonic-xcvrd/tests/test_xcvrd.py b/sonic-xcvrd/tests/test_xcvrd.py index c9b3ffbb3e7a..724b01e7bae9 100644 --- a/sonic-xcvrd/tests/test_xcvrd.py +++ b/sonic-xcvrd/tests/test_xcvrd.py @@ -6,7 +6,7 @@ import unittest from imp import load_source if sys.version_info >= (3, 3): - from unittest.mock import MagicMock + from unittest.mock import MagicMock, patch else: from mock import MagicMock, patch