Skip to content

Commit 6794a95

Browse files
committed
Use unittest.mock instead of mock
1 parent 3e95f35 commit 6794a95

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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)