Skip to content

Commit

Permalink
prefer new unittest.mock from the standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed Apr 27, 2024
1 parent 504107b commit 44e3011
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@
- is_some_sort_of_code()
"""

try:
from unittest.mock import patch
except ImportError
from mock import patch

# Third Party Imports
import pytest
from mock import patch

# docformatter Package Imports
import docformatter
Expand Down

0 comments on commit 44e3011

Please sign in to comment.