mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
better cleanup
This commit is contained in:
parent
8a6a477ef7
commit
72f17a3834
@ -51,10 +51,10 @@ class Basic(testutil.ReallyEqualMixin, testutil.NonASCIIPathMixin, unittest.Test
|
||||
with open(intro_fname, 'w') as f:
|
||||
f.write("---\n")
|
||||
os.chmod(intro_fname, 0o000)
|
||||
self.addCleanup(lambda: os.chmod(intro_fname, 0o700))
|
||||
|
||||
with self.assertRaises(EnvironmentError):
|
||||
yield client.create_client(basedir)
|
||||
os.chmod(intro_fname, 0o700)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_comment(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user