maybe a newline helps

This commit is contained in:
meejah 2022-09-22 00:11:20 -06:00
parent 4f5a1ac372
commit 8ebe331c35

View File

@ -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