]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add simple test for repr(lock)
authorChristian Heimes <christian@cheimes.de>
Tue, 30 Jul 2013 13:54:39 +0000 (15:54 +0200)
committerChristian Heimes <christian@cheimes.de>
Tue, 30 Jul 2013 13:54:39 +0000 (15:54 +0200)
Lib/test/lock_tests.py

index bfbf44e0db70156131ebd3c1d65f3b487f9bb6b4..1a24bdeed373fbd075e2c698d18616f55c941442 100644 (file)
@@ -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()