mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-05-02 17:12:59 +00:00
maybe a newline helps
This commit is contained in:
parent
4f5a1ac372
commit
8ebe331c35
@ -643,7 +643,7 @@ class PidFileLocking(SyncTestCase):
|
|||||||
"\n".join([
|
"\n".join([
|
||||||
"import filelock, time",
|
"import filelock, time",
|
||||||
"with filelock.FileLock('{}', timeout=1):".format(lockfile.path),
|
"with filelock.FileLock('{}', timeout=1):".format(lockfile.path),
|
||||||
" print('.', flush=True)",
|
" print('.\n', flush=True)",
|
||||||
" time.sleep(5)",
|
" time.sleep(5)",
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
@ -657,7 +657,7 @@ class PidFileLocking(SyncTestCase):
|
|||||||
# for sure (from the "." it prints)
|
# for sure (from the "." it prints)
|
||||||
self.assertThat(
|
self.assertThat(
|
||||||
proc.stdout.read(1),
|
proc.stdout.read(1),
|
||||||
Equals(b".")
|
Equals(b".\n")
|
||||||
)
|
)
|
||||||
|
|
||||||
# we should not be able to acuire this corresponding lock as well
|
# we should not be able to acuire this corresponding lock as well
|
||||||
|
Loading…
x
Reference in New Issue
Block a user