summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-02-16 11:02:08 -0800
committerDwayne Litzenberger <dlitz@dlitz.net>2013-02-16 11:02:10 -0800
commit5d1cd3da0e8eb8122210cca81619d57cbb5826fc (patch)
tree9695aa5daf787c0b17e2dc300fe4ebcf15b9328e
parent14ef4933c9c0b21c7bfba3556e1aa13f3f9ef6ff (diff)
downloadpycrypto-5d1cd3da0e8eb8122210cca81619d57cbb5826fc.tar.gz
Fix random.shuffle SelfTest
random.shuffle("1") is a no-op, so it doesn't raise TypeError. This is now true of both the stdlib random.shuffle and PyCrypto's random.shuffle implementation.
-rw-r--r--lib/Crypto/SelfTest/Random/test_random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/SelfTest/Random/test_random.py b/lib/Crypto/SelfTest/Random/test_random.py
index f9ffc66..3e85c3c 100644
--- a/lib/Crypto/SelfTest/Random/test_random.py
+++ b/lib/Crypto/SelfTest/Random/test_random.py
@@ -133,7 +133,7 @@ class SimpleTest(unittest.TestCase):
self.assertEqual(b('1') in z, True)
self.assertRaises(TypeError, random.shuffle, b('12'))
self.assertRaises(TypeError, random.shuffle, 1)
- self.assertRaises(TypeError, random.shuffle, "1")
+ self.assertRaises(TypeError, random.shuffle, "11")
self.assertRaises(TypeError, random.shuffle, (1,2))
# 2to3 wraps a list() around it, alas - but I want to shoot
# myself in the foot here! :D