MCPcopy Create free account
hub / github.com/numpy/numpy / new_test

Function new_test

numpy/distutils/tests/test_ccompiler_opt.py:776–793  ·  view source on GitHub ↗
(arch, cc)

Source from the content-addressed store, hash-verified

774 )
775
776def new_test(arch, cc):
777 if is_standalone: return textwrap.dedent("""\
778 class TestCCompilerOpt_{class_name}(_Test_CCompilerOpt, unittest.TestCase):
779 arch = '{arch}'
780 cc = '{cc}'
781 def __init__(self, methodName="runTest"):
782 unittest.TestCase.__init__(self, methodName)
783 self.setup_class()
784 """).format(
785 class_name=arch + '_' + cc, arch=arch, cc=cc
786 )
787 return textwrap.dedent("""\
788 class TestCCompilerOpt_{class_name}(_Test_CCompilerOpt):
789 arch = '{arch}'
790 cc = '{cc}'
791 """).format(
792 class_name=arch + '_' + cc, arch=arch, cc=cc
793 )
794"""
795if 1 and is_standalone:
796 FakeCCompilerOpt.fake_info = "x86_icc"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected