summaryrefslogtreecommitdiffstats
path: root/Lib/test/lock_tests.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-30 13:54:39 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-30 13:54:39 (GMT)
commitc5d95b17acfdf2d01569bd32d67cadbd5f5cd4a3 (patch)
treeba36a290e854d103636ce8fefb0cdb9592ea8660 /Lib/test/lock_tests.py
parent8ad91cc35403199bab0e25a7266c7bb1125e94d5 (diff)
downloadcpython-c5d95b17acfdf2d01569bd32d67cadbd5f5cd4a3.zip
cpython-c5d95b17acfdf2d01569bd32d67cadbd5f5cd4a3.tar.gz
cpython-c5d95b17acfdf2d01569bd32d67cadbd5f5cd4a3.tar.bz2
Add simple test for repr(lock)
Diffstat (limited to 'Lib/test/lock_tests.py')
-rw-r--r--Lib/test/lock_tests.py5
1 files changed, 5 insertions, 0 deletions
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()