Skip to content

Commit 13b904e

Browse files
committed
use built-in unittest.mock
A built-in unittest.mock module has been introduced in Python 3.3. Use it instead of depending on external mock package that's only needed for older Pythons.
1 parent 382ea82 commit 13b904e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_rwx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from libarchive.entry import format_time
88
from libarchive.extract import EXTRACT_OWNER, EXTRACT_PERM, EXTRACT_TIME
99
from libarchive.write import memory_writer
10-
from mock import patch
10+
from unittest.mock import patch
1111
import pytest
1212

1313
from . import check_archive, in_dir, treestat

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ deps=
1313
pytest-cov
1414
pytest-xdist
1515
six
16-
mock

0 commit comments

Comments
 (0)