Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_threadedtempfile.py

    r2 r391  
    1717FILES_PER_THREAD = 50
    1818
    19 import thread # If this fails, we can't test this module
    20 import threading
    2119import tempfile
    2220
    23 from test.test_support import threading_setup, threading_cleanup, run_unittest
     21from test.test_support import threading_setup, threading_cleanup, run_unittest, import_module
     22threading = import_module('threading')
    2423import unittest
    2524import StringIO
     
    7069        msg = "Errors: errors %d ok %d\n%s" % (len(errors), ok,
    7170            '\n'.join(errors))
    72         self.assertEquals(errors, [], msg)
    73         self.assertEquals(ok, NUM_THREADS * FILES_PER_THREAD)
     71        self.assertEqual(errors, [], msg)
     72        self.assertEqual(ok, NUM_THREADS * FILES_PER_THREAD)
    7473
    7574def test_main():
Note: See TracChangeset for help on using the changeset viewer.