We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6812ea1 commit 59cb2a6Copy full SHA for 59cb2a6
smartdispatch/tests/test_filelock.py
@@ -38,9 +38,9 @@ def _test_open_with_lock(lock_func):
38
time.sleep(1)
39
40
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.")
+ assert_equal(stdout, b"")
+ assert_true("Traceback" not in stderr.decode(), msg="Unexpected error: '{}'".format(stderr.decode()))
+ assert_true("write-lock" in stderr.decode(), msg="Forcing a race condition, try increasing sleeping time above.")
44
45
shutil.rmtree(temp_dir) # Cleaning up.
46
0 commit comments