mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Make flake8 use built-in mock from unittest, if available (Python 3.4+)
This commit is contained in:
parent
121ea4f056
commit
5faa1df46a
21 changed files with 84 additions and 21 deletions
|
|
@ -1,6 +1,9 @@
|
|||
"""Tests for our debugging module."""
|
||||
import entrypoints
|
||||
import mock
|
||||
try:
|
||||
from unittest import mock
|
||||
except (ImportError, AttributeError):
|
||||
import mock
|
||||
import pytest
|
||||
|
||||
from flake8.main import debug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue