Skip to content

Commit 59cb2a6

Browse files
committed
Rebase master
1 parent 6812ea1 commit 59cb2a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smartdispatch/tests/test_filelock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def _test_open_with_lock(lock_func):
3838
time.sleep(1)
3939

4040
stdout, stderr = process.communicate()
41-
assert_equal(stdout, "")
42-
assert_true("Traceback" not in stderr, msg="Unexpected error: '{}'".format(stderr))
43-
assert_true("write-lock" in stderr, msg="Forcing a race condition, try increasing sleeping time above.")
41+
assert_equal(stdout, b"")
42+
assert_true("Traceback" not in stderr.decode(), msg="Unexpected error: '{}'".format(stderr.decode()))
43+
assert_true("write-lock" in stderr.decode(), msg="Forcing a race condition, try increasing sleeping time above.")
4444

4545
shutil.rmtree(temp_dir) # Cleaning up.
4646

0 commit comments

Comments
 (0)