summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-12-31 17:08:53 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-12-31 17:08:53 (GMT)
commit9db22dd968c043beb9abc6233360336018da5249 (patch)
treead7a498c8b6678f77e17dffd7db819ed3253818b /Lib/test
parent53a21eb479a795e4f2902d715b724e89ccf641e6 (diff)
parent6b5e4a86a7f53bcdc565d1eb6d88c17d16b64a2f (diff)
downloadcpython-9db22dd968c043beb9abc6233360336018da5249.zip
cpython-9db22dd968c043beb9abc6233360336018da5249.tar.gz
cpython-9db22dd968c043beb9abc6233360336018da5249.tar.bz2
Issue #26267: Merge from 3.5
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_uuid.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index e34d8e6..47248f9 100644
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -292,6 +292,10 @@ class TestUUID(unittest.TestCase):
badtype(lambda: setattr(u, 'clock_seq_low', 0))
badtype(lambda: setattr(u, 'node', 0))
+ # Comparison with a non-UUID object
+ badtype(lambda: u < object())
+ badtype(lambda: u > object())
+
def test_getnode(self):
node1 = uuid.getnode()
self.assertTrue(0 < node1 < (1 << 48), '%012x' % node1)