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

« back to all changes in this revision

Viewing changes to Lib/test/test_sys.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:
391
391
        out = p.stdout.read().strip()
392
392
        self.assertEqual(out, '?')
393
393
 
 
394
    def test_call_tracing(self):
 
395
        self.assertEqual(sys.call_tracing(str, (2,)), "2")
 
396
        self.assertRaises(TypeError, sys.call_tracing, str, 2)
 
397
 
394
398
 
395
399
class SizeofTest(unittest.TestCase):
396
400
 
534
538
        # enumerate
535
539
        check(enumerate([]), size(h + 'l3P'))
536
540
        # file
537
 
        check(self.file, size(h + '4P2i4P3i3Pi'))
 
541
        check(self.file, size(h + '4P2i4P3i3P3i'))
538
542
        # float
539
543
        check(float(0), size(h + 'd'))
540
544
        # sys.floatinfo