Skip to content

Commit 943d201

Browse files
committed
Use unittest.mock
1 parent e84a4eb commit 943d201

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install "blessings>=1.5" "wcwidth>=0.1.4" mock pyte nose
25+
pip install "blessings>=1.5" "wcwidth>=0.1.4" pyte nose
2626
- name: Build with Python ${{ matrix.python-version }}
2727
run: |
2828
python setup.py build

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def long_description():
3030
"blessings>=1.5",
3131
"wcwidth>=0.1.4"
3232
],
33-
tests_require=["mock", "pyte", "nose",],
33+
tests_require=["pyte", "nose",],
3434
classifiers=[
3535
"Development Status :: 3 - Alpha",
3636
"Environment :: Console",

tests/test_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import threading
55
import time
66
import unittest
7-
from mock import Mock
7+
from unittest.mock import Mock
88

99
try:
1010
from unittest import skip, skipUnless

0 commit comments

Comments
 (0)