mirror of https://github.com/borgbackup/borg.git
ignore testsuite test for slow msgpack on cygwin
we don't want to have a failing test just because a not compiled msgpack was used to run the tests.
This commit is contained in:
parent
57c9f6193a
commit
f088682bc9
|
@ -4,7 +4,7 @@ Platform-specific APIs.
|
|||
Public APIs are documented in platform.base.
|
||||
"""
|
||||
|
||||
from ..platformflags import is_win32, is_linux, is_freebsd, is_darwin
|
||||
from ..platformflags import is_win32, is_linux, is_freebsd, is_darwin, is_cygwin
|
||||
|
||||
from .base import ENOATTR, API_VERSION
|
||||
from .base import SaveFile, sync_dir, fdatasync, safe_fadvise
|
||||
|
|
|
@ -7,6 +7,8 @@ Use these Flags instead of sys.platform.startswith('<OS>') or try/except.
|
|||
import sys
|
||||
|
||||
is_win32 = sys.platform.startswith("win32")
|
||||
is_cygwin = sys.platform.startswith("cygwin")
|
||||
|
||||
is_linux = sys.platform.startswith("linux")
|
||||
is_freebsd = sys.platform.startswith("freebsd")
|
||||
is_darwin = sys.platform.startswith("darwin")
|
||||
|
|
|
@ -42,6 +42,7 @@ from ..helpers import iter_separated
|
|||
from ..helpers import eval_escapes
|
||||
from ..helpers import safe_unlink
|
||||
from ..helpers.passphrase import Passphrase, PasswordRetriesExceeded
|
||||
from ..platform import is_cygwin
|
||||
|
||||
from . import BaseTestCase, FakeInputs
|
||||
|
||||
|
@ -596,6 +597,7 @@ def test_parse_file_size_invalid(string):
|
|||
parse_file_size(string)
|
||||
|
||||
|
||||
@pytest.mark.skipif(is_cygwin, reason="ignore slow msgpack on cygwin")
|
||||
def test_is_slow_msgpack():
|
||||
# we need to import upstream msgpack package here, not helpers.msgpack:
|
||||
import msgpack
|
||||
|
|
Loading…
Reference in New Issue