mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
skip some tests on windows (permissions)
This commit is contained in:
parent
5000787c18
commit
629185d98f
@ -145,6 +145,11 @@ class TestCase(testutil.SignalMixin, unittest.TestCase):
|
||||
config.get_config_from_file("it_does_not_exist", required=True)
|
||||
|
||||
def test_private_config_unreadable(self):
|
||||
if "win32" in sys.platform.lower() or "cygwin" in sys.platform.lower():
|
||||
# We don't know how to test that unprivileged users can't read this
|
||||
# thing. (Also we don't know exactly how to set the permissions so
|
||||
# that unprivileged users can't read this thing.)
|
||||
raise unittest.SkipTest("We don't know how to set permissions on Windows.")
|
||||
basedir = u"test_node/test_private_config_unreadable"
|
||||
create_node_dir(basedir, "testing")
|
||||
config = read_config(basedir, "portnum")
|
||||
@ -156,6 +161,11 @@ class TestCase(testutil.SignalMixin, unittest.TestCase):
|
||||
config.get_or_create_private_config("foo")
|
||||
|
||||
def test_private_config_unreadable_preexisting(self):
|
||||
if "win32" in sys.platform.lower() or "cygwin" in sys.platform.lower():
|
||||
# We don't know how to test that unprivileged users can't read this
|
||||
# thing. (Also we don't know exactly how to set the permissions so
|
||||
# that unprivileged users can't read this thing.)
|
||||
raise unittest.SkipTest("We don't know how to set permissions on Windows.")
|
||||
basedir = u"test_node/test_private_config_unreadable_preexisting"
|
||||
create_node_dir(basedir, "testing")
|
||||
config = read_config(basedir, "portnum")
|
||||
|
Loading…
x
Reference in New Issue
Block a user