summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-02 20:02:44 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-02 20:02:44 (GMT)
commit5afafad82d3e42be49d9e6a1eb95f2f3ed58fab0 (patch)
tree57ccde07e5f3ff0abe9ba2e23495055a94114fb7 /Lib/test
parent9121ab94332ec38ac24f88b468b6ca54b1845cd8 (diff)
downloadcpython-5afafad82d3e42be49d9e6a1eb95f2f3ed58fab0.zip
cpython-5afafad82d3e42be49d9e6a1eb95f2f3ed58fab0.tar.gz
cpython-5afafad82d3e42be49d9e6a1eb95f2f3ed58fab0.tar.bz2
<rotorobj>.setkey() now requires exactly one argument
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_rotor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_rotor.py b/Lib/test/test_rotor.py
index 475ac16..338ea9d 100644
--- a/Lib/test/test_rotor.py
+++ b/Lib/test/test_rotor.py
@@ -21,5 +21,8 @@ print B1
if B1 <> B:
print 'decryptmore failed'
-r.setkey()
+try:
+ r.setkey()
+except TypeError:
+ pass
r.setkey('you guessed it!')