mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 06:01:54 +00:00
use mock from stdlib, fixes #145
This commit is contained in:
parent
8a819d4499
commit
dabac6a4ed
4 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
from datetime import datetime, timezone
|
||||
from unittest.mock import Mock
|
||||
|
||||
import msgpack
|
||||
from mock import Mock
|
||||
|
||||
from ..archive import Archive, CacheChunkBuffer, RobustUnpacker
|
||||
from ..key import PlaintextKey
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
import tempfile
|
||||
import time
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
from hashlib import sha256
|
||||
|
||||
from mock import patch
|
||||
import pytest
|
||||
|
||||
from .. import xattr
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
|
||||
from ..hashindex import NSIndex
|
||||
from ..helpers import Location, IntegrityError
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
virtualenv<14.0
|
||||
tox
|
||||
mock
|
||||
pytest
|
||||
pytest-cov<2.0.0
|
||||
pytest-benchmark>=3.0.0
|
||||
|
|
Loading…
Reference in a new issue