~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/test/test_cpickle.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        for n in nodes:
108
108
            n.connections = list(nodes)
109
109
            n.connections.remove(n)
110
 
        self.assertRaises(RuntimeError, cPickle.dumps, n)
 
110
        self.assertRaises((AttributeError, RuntimeError), cPickle.dumps, n)
111
111
 
112
112
    def test_issue3179(self):
113
113
        # Safe test, because I broke this case when fixing the