summaryrefslogtreecommitdiff
path: root/python-3-changes.txt
diff options
context:
space:
mode:
authorThorsten Behrens <sbehrens@gmx.li>2011-01-03 22:30:23 -0500
committerThorsten Behrens <sbehrens@gmx.li>2011-01-03 22:30:23 -0500
commit83cd648f8a125f788fd6afdf781775840455a317 (patch)
treecabe6731e83464d5fc0bae722563c96b193a18aa /python-3-changes.txt
parent560874f4b8711897ea644b8f5817113e7221dbec (diff)
downloadpycrypto-83cd648f8a125f788fd6afdf781775840455a317.tar.gz
Add unit test for AllOrNothing
Note that AllOrNothing fails occasionally. This has always been the case; the unit test merely forces the flaw to be exposed.
Diffstat (limited to 'python-3-changes.txt')
-rw-r--r--python-3-changes.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/python-3-changes.txt b/python-3-changes.txt
index 880405b..ea2c04c 100644
--- a/python-3-changes.txt
+++ b/python-3-changes.txt
@@ -58,6 +58,12 @@ Use instead assertEqual(expr,True) for assert_ and assertEqual(expr,False) for
failIf
Added unit tests for Crypto.Random.random. Fixed random.shuffle().
+Not changed: random.sample() fails on Python 2.1. This is now exposed through
+ the unit test.
+
+Added unit test for Crypto.Protocol.AllOrNothing.
+Not changed: AllOrNothing fails when called a few times (<10, usually). This
+ is now exposed through the unit test.
C code:
@@ -95,12 +101,11 @@ getattr cannot be used to check against custom attributes in 3.x. For 3.x,
hexdigest() needed to be changed to return a Unicode object with 3.x
-TODO:
+TODO for extra credit:
- Check for type of string in functions and throw an error when it's not
correct. While at it, ensure that functions observe the guidelines below
re type.
This is friendlier than just relying on Python's errors.
-- Need additional unit tests for Protocol/AllOrNothing
- Make sure DerSequence slicing is tested, since I took the explicit slice
functions away in 3.x
-- Test install on all tested Python versions
+