Skip to content

Commit c66e8ab

Browse files
authored
Replace PyPI mock with unittest.mock (#111)
[Contributed by @musicinmybrain, reviewed by Lydia] The standard library has contained unittest.mock since Python 3.3. See also https://fedoraproject.org/wiki/Changes/DeprecatePythonMock for details and context.
2 parents 4dc178f + 6079fad commit c66e8ab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
flake8==7.3.0
2-
mock
32
pytest==8.4.1
43
pytest-cov
54
tox

test/test_chapeldomain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from __future__ import print_function, unicode_literals
66

77
import docutils.nodes as nodes
8-
import mock
98
import unittest
9+
from unittest import mock
1010

1111
from sphinxcontrib.chapeldomain import (
1212
ChapelDomain, ChapelModuleIndex, ChapelClassObject, ChapelModuleLevel, ChapelObject,

0 commit comments

Comments
 (0)