Skip to content

Commit af563db

Browse files
authored
Use unittest.mock instead of mock (#469)
1 parent 729ec54 commit af563db

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
TESTDB: actions.cnf
2626
run: |
2727
pip install -U pip
28-
pip install -U mock coverage pytest pytest-cov
28+
pip install -U coverage pytest pytest-cov
2929
pip install .
3030
pytest --cov ./MySQLdb
3131
- uses: codecov/codecov-action@v1

tests/test_MySQLdb_times.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import mock
2-
import unittest
3-
from time import gmtime
41
from datetime import time, date, datetime, timedelta
2+
from time import gmtime
3+
import unittest
4+
from unittest import mock
5+
import warnings
56

67
from MySQLdb import times
78

8-
import warnings
99

1010
warnings.simplefilter("ignore")
1111

0 commit comments

Comments
 (0)