~ubuntu-branches/ubuntu/natty/python2.6/natty-security

« back to all changes in this revision

Viewing changes to Lib/test/test_unicode.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-06-24 00:31:14 UTC
  • mfrom: (10.1.18 sid)
  • Revision ID: james.westby@ubuntu.com-20100624003114-jmwmbudlpucl6ip3
Tags: 2.6.5+20100616-1ubuntu1
* Merge from Debian Unstable.  Remaining Ubuntu changes:
  - Add new symbols to libpython.symbols.in
  - Re-enable the profiled build on all architectures
  - Priority for python2.6-minimal is required instead of optional
  - python2.6-minimal and python2.6 Conflict python-central
    (<< 0.6.11ubuntu6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1103
1103
        self.assertRaises(ValueError, u"{:}".format)
1104
1104
        self.assertRaises(ValueError, u"{:s}".format)
1105
1105
        self.assertRaises(ValueError, u"{}".format)
 
1106
        big = u"23098475029384702983476098230754973209482573"
 
1107
        self.assertRaises(ValueError, (u"{" + big + u"}").format)
 
1108
        self.assertRaises(ValueError, (u"{[" + big + u"]}").format, [0])
1106
1109
 
1107
1110
        # issue 6089
1108
1111
        self.assertRaises(ValueError, u"{0[0]x}".format, [None])