diff options
Diffstat (limited to 'Lib/bsddb/test/test_lock.py')
-rw-r--r-- | Lib/bsddb/test/test_lock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py index 9b5a71f..063ffbd 100644 --- a/Lib/bsddb/test/test_lock.py +++ b/Lib/bsddb/test/test_lock.py @@ -55,7 +55,7 @@ class LockingTestCase(unittest.TestCase): anID = self.env.lock_id() if verbose: print("locker ID: %s" % anID) - lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE) + lock = self.env.lock_get(anID, b"some locked thing", db.DB_LOCK_WRITE) if verbose: print("Aquired lock: %s" % lock) time.sleep(1) @@ -115,7 +115,7 @@ class LockingTestCase(unittest.TestCase): if verbose: print("%s: locker ID: %s" % (name, anID)) - lock = self.env.lock_get(anID, "some locked thing", lockType) + lock = self.env.lock_get(anID, b"some locked thing", lockType) if verbose: print("%s: Aquired %s lock: %s" % (name, lt, lock)) |