Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

prefer newer unittest.mock from the standard library when available #927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion influxdb/tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
import io
import gzip
import json
import mock
try:
from unittest import mock
except ImportError:
import mock
import requests
import requests.exceptions
import requests_mock
Expand Down
5 changes: 4 additions & 1 deletion influxdb/tests/helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
import unittest
import warnings

import mock
try:
from unittest import mock
except ImportError:
import mock
from influxdb import SeriesHelper, InfluxDBClient
from requests.exceptions import ConnectionError

Expand Down
5 changes: 4 additions & 1 deletion influxdb/tests/influxdb08/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import random
import warnings

import mock
try:
from unittest import mock
except ImportError:
import mock
import requests
import requests.exceptions
import requests_mock
Expand Down
5 changes: 4 additions & 1 deletion influxdb/tests/influxdb08/helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import unittest
import warnings

import mock
try:
from unittest import mock
except ImportError:
import mock
from influxdb.influxdb08 import SeriesHelper, InfluxDBClient
from requests.exceptions import ConnectionError

Expand Down