add hg and python

This commit is contained in:
cinap_lenrek 2011-05-03 11:25:13 +00:00
parent 3a742c699f
commit 458120dd40
3709 changed files with 1244309 additions and 1 deletions

View file

@ -0,0 +1,26 @@
import unittest
from doctest import DocTestSuite
from test import test_support
def test_main():
suite = DocTestSuite('_threading_local')
try:
from thread import _local
except ImportError:
pass
else:
import _threading_local
local_orig = _threading_local.local
def setUp(test):
_threading_local.local = _local
def tearDown(test):
_threading_local.local = local_orig
suite.addTest(DocTestSuite('_threading_local',
setUp=setUp, tearDown=tearDown)
)
test_support.run_suite(suite)
if __name__ == '__main__':
test_main()