From c5d95b17acfdf2d01569bd32d67cadbd5f5cd4a3 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 30 Jul 2013 15:54:39 +0200 Subject: Add simple test for repr(lock) --- Lib/test/lock_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index bfbf44e..1a24bde 100644 --- a/Lib/test/lock_tests.py +++ b/Lib/test/lock_tests.py @@ -80,6 +80,11 @@ class BaseLockTests(BaseTestCase): lock = self.locktype() del lock + def test_repr(self): + lock = self.locktype() + repr(lock) + del lock + def test_acquire_destroy(self): lock = self.locktype() lock.acquire() -- cgit v0.12