Commit baefcebb authored by Guido van Rossum's avatar Guido van Rossum

Remove erroneous and confusing comment -- sre patterns *can* be

pickled and we do *not* expect exceptions from either pickle or
cPickle.
parent 73f0a4ec
...@@ -264,7 +264,7 @@ try: ...@@ -264,7 +264,7 @@ try:
s = pickle.dumps(pat) s = pickle.dumps(pat)
pat = pickle.loads(s) pat = pickle.loads(s)
except: except:
print TestFailed, 're module pickle' # expected print TestFailed, 're module pickle'
try: try:
import cPickle import cPickle
...@@ -272,7 +272,7 @@ try: ...@@ -272,7 +272,7 @@ try:
s = cPickle.dumps(pat) s = cPickle.dumps(pat)
pat = cPickle.loads(s) pat = cPickle.loads(s)
except: except:
print TestFailed, 're module cPickle' # expected print TestFailed, 're module cPickle'
# constants # constants
test(r"""sre.I""", sre.IGNORECASE) test(r"""sre.I""", sre.IGNORECASE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment