mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-05 12:44:13 +00:00
Avoid breaking non-Windows with test_windows
This commit is contained in:
parent
ed713182e7
commit
fd223136db
@ -69,10 +69,6 @@ from .common import (
|
|||||||
SyncTestCase,
|
SyncTestCase,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ..windows.fixups import (
|
|
||||||
get_argv,
|
|
||||||
)
|
|
||||||
|
|
||||||
slow_settings = settings(
|
slow_settings = settings(
|
||||||
suppress_health_check=[HealthCheck.too_slow],
|
suppress_health_check=[HealthCheck.too_slow],
|
||||||
deadline=None,
|
deadline=None,
|
||||||
@ -87,9 +83,15 @@ class GetArgvTests(SyncTestCase):
|
|||||||
"""
|
"""
|
||||||
``get_argv`` returns a list of unicode strings
|
``get_argv`` returns a list of unicode strings
|
||||||
"""
|
"""
|
||||||
|
# Hide the ``allmydata.windows.fixups.get_argv`` import here so it
|
||||||
|
# doesn't cause failures on non-Windows platforms.
|
||||||
|
from ..windows.fixups import (
|
||||||
|
get_argv,
|
||||||
|
)
|
||||||
|
argv = get_argv()
|
||||||
|
|
||||||
# We don't know what this process's command line was so we just make
|
# We don't know what this process's command line was so we just make
|
||||||
# structural assertions here.
|
# structural assertions here.
|
||||||
argv = get_argv()
|
|
||||||
self.assertThat(
|
self.assertThat(
|
||||||
argv,
|
argv,
|
||||||
MatchesAll(
|
MatchesAll(
|
||||||
|
Loading…
Reference in New Issue
Block a user