本文整理汇总了Python中test.support.run_unittest函数的典型用法代码示例。如果您正苦于以下问题:Python run_unittest函数的具体用法?Python run_unittest怎么用?Python run_unittest使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了run_unittest函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_main
def test_main():
support.requires('network')
support.run_unittest(
CreationTestCase,
TCPTimeoutTestCase,
UDPTimeoutTestCase,
)
开发者ID:5outh,项目名称:Databases-Fall2014,代码行数:7,代码来源:test_timeout.py
示例2: test_main
def test_main():
support.run_unittest(
OSEINTRTest,
SocketEINTRTest,
TimeEINTRTest,
SignalEINTRTest,
SelectEINTRTest)
开发者ID:cpcloud,项目名称:cpython,代码行数:7,代码来源:eintr_tester.py
示例3: test_main
def test_main():
support.run_unittest(XMLRPCTestCase, HelperTestCase, DateTimeTestCase,
BinaryTestCase, FaultTestCase, UseBuiltinTypesTestCase,
SimpleServerTestCase, KeepaliveServerTestCase1,
KeepaliveServerTestCase2, GzipServerTestCase,
MultiPathServerTestCase, ServerProxyTestCase, FailingServerTestCase,
CGIHandlerTestCase)
开发者ID:fwyzard,项目名称:cpython,代码行数:7,代码来源:test_xmlrpc.py
示例4: test_main
def test_main():
support.requires('network')
with support.check_py3k_warnings(
("urllib.urlopen.. has been removed", DeprecationWarning)):
support.run_unittest(URLTimeoutTest,
urlopenNetworkTests,
urlretrieveNetworkTests)
开发者ID:isaiah,项目名称:jython3,代码行数:7,代码来源:test_urllibnet.py
示例5: test_main
def test_main():
support.run_unittest(
TestTracemallocEnabled,
TestSnapshot,
TestFilters,
TestCommandLine,
)
开发者ID:Connor124,项目名称:Gran-Theft-Crop-Toe,代码行数:7,代码来源:test_tracemalloc.py
示例6: test_main
def test_main():
support.run_unittest(
ChecksumTestCase,
ExceptionTestCase,
CompressTestCase,
CompressObjectTestCase
)
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:test_zlib.py
示例7: test_main
def test_main():
support.run_unittest(
TestVectorsTestCase,
ConstructorTestCase,
SanityTestCase,
CopyTestCase
)
开发者ID:7modelsan,项目名称:kbengine,代码行数:7,代码来源:test_hmac.py
示例8: test_main
def test_main(verbose=None):
test_classes = (
TestPartialC,
TestPartialPy,
TestPartialCSubclass,
TestUpdateWrapper,
TestTotalOrdering,
TestCmpToKeyC,
TestCmpToKeyPy,
TestWraps,
TestReduce,
TestLRU,
TestSingleDispatch,
)
support.run_unittest(*test_classes)
# verify reference counting
if verbose and hasattr(sys, "gettotalrefcount"):
import gc
counts = [None] * 5
for i in range(len(counts)):
support.run_unittest(*test_classes)
gc.collect()
counts[i] = sys.gettotalrefcount()
print(counts)
开发者ID:aholkner,项目名称:cpython,代码行数:25,代码来源:test_functools.py
示例9: test_main
def test_main(verbose=None):
from test import test_code
run_doctest(test_code, verbose)
tests = [CodeTest, CodeConstsTest, CodeWeakRefTest]
if check_impl_detail(cpython=True) and ctypes is not None:
tests.append(CoExtra)
run_unittest(*tests)
开发者ID:1st1,项目名称:cpython,代码行数:7,代码来源:test_code.py
示例10: test_main
def test_main():
support.run_unittest(
OutputTestCase,
CalendarTestCase,
MondayTestCase,
SundayTestCase
)
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_calendar.py
示例11: test_main
def test_main():
tests = [HelperFunctionTests, DispatcherTests, DispatcherWithSendTests,
DispatcherWithSendTests_UsePoll]
if hasattr(asyncore, 'file_wrapper'):
tests.append(FileWrapperTest)
run_unittest(*tests)
开发者ID:henrywoo,项目名称:Python3.1.3-Linux,代码行数:7,代码来源:test_asyncore.py
示例12: test_main
def test_main():
support.run_unittest(
TestCRNewlines,
TestLFNewlines,
TestCRLFNewlines,
TestMixedNewlines
)
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_univnewlines.py
示例13: test_main
def test_main():
run_unittest(FailureTestCase, NonexceptionalTestCase,
NestedNonexceptionalTestCase, ExceptionalTestCase,
NonLocalFlowControlTestCase,
AssignmentTargetTestCase,
ExitSwallowsExceptionTestCase,
NestedWith)
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:test_with.py
示例14: test_main
def test_main():
support.run_unittest(Frozen_ModuleLockAsRLockTests,
Source_ModuleLockAsRLockTests,
Frozen_DeadlockAvoidanceTests,
Source_DeadlockAvoidanceTests,
Frozen_LifetimeTests,
Source_LifetimeTests)
开发者ID:10sr,项目名称:cpython,代码行数:7,代码来源:test_locks.py
示例15: test_main
def test_main(verbose=None):
run_unittest(ImportTests, PycacheTests, FilePermissionTests,
PycRewritingTests, PathsTests, RelativeImportTests,
OverridingImportBuiltinTests,
ImportlibBootstrapTests,
TestSymbolicallyLinkedPackage,
ImportTracebackTests)
开发者ID:Elleo,项目名称:python3,代码行数:7,代码来源:test_import.py
示例16: test_main
def test_main():
from test import support
support.run_unittest(
ModuleForLoaderTests,
SetPackageTests,
ResolveNameTests
)
开发者ID:Anzumana,项目名称:cpython,代码行数:7,代码来源:test_util.py
示例17: test_main
def test_main():
from doctest import DocFileSuite
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MathTests))
suite.addTest(DocFileSuite("ieee754.txt"))
run_unittest(suite)
开发者ID:xdray,项目名称:kbengine,代码行数:7,代码来源:test_math.py
示例18: test_main
def test_main():
tests = [
PickleTests,
PyUnpicklerTests,
PyPicklerTests,
PyPersPicklerTests,
PyDispatchTableTests,
PyChainDispatchTableTests,
CompatPickleTests,
]
if has_c_implementation:
tests.extend(
[
CUnpicklerTests,
CPicklerTests,
CPersPicklerTests,
CDumpPickle_LoadPickle,
DumpPickle_CLoadPickle,
PyPicklerUnpicklerObjectTests,
CPicklerUnpicklerObjectTests,
CDispatchTableTests,
CChainDispatchTableTests,
InMemoryPickleTests,
SizeofTests,
]
)
support.run_unittest(*tests)
support.run_doctest(pickle)
开发者ID:stan2133,项目名称:cpython,代码行数:28,代码来源:test_pickle.py
示例19: test_main
def test_main():
tests = [
ChdirTestCase,
ImportTestCase,
ImportPackageTestCase,
ZipimportTestCase,
PyCompileTestCase,
ExecfileTestCase,
ExecfileTracebackTestCase,
ListdirTestCase,
DirsTestCase,
FilesTestCase,
SymlinkTestCase
]
if WINDOWS:
tests.append(WindowsChdirTestCase)
tests.remove(SymlinkTestCase) # os.symlink ... Availability: Unix.
if support.is_jython:
tests.extend((ImportJavaClassTestCase,
ImportJarTestCase))
if support.is_resource_enabled('subprocess'):
tests.append(SubprocessTestCase)
support.run_unittest(*tests)
开发者ID:isaiah,项目名称:jython3,代码行数:26,代码来源:test_chdir.py
示例20: test_main
def test_main():
support.requires("network")
support.run_unittest(AuthTests,
OtherNetworkTests,
CloseSocketTest,
TimeoutTest,
)
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_urllib2net.py
注:本文中的test.support.run_unittest函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论