Python test.support.python_is_optimized() Examples

The following are 6 code examples of test.support.python_is_optimized(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module test.support , or try the search function .
Example #1
Source File: test_test_support.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_python_is_optimized(self):
        self.assertIsInstance(support.python_is_optimized(), bool) 
Example #2
Source File: test_support.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_python_is_optimized(self):
        self.assertIsInstance(support.python_is_optimized(), bool) 
Example #3
Source File: test_support.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_python_is_optimized(self):
        self.assertIsInstance(support.python_is_optimized(), bool) 
Example #4
Source File: test_support.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_python_is_optimized(self):
        self.assertIsInstance(support.python_is_optimized(), bool) 
Example #5
Source File: test_support.py    From android_universal with MIT License 5 votes vote down vote up
def test_python_is_optimized(self):
        self.assertIsInstance(support.python_is_optimized(), bool) 
Example #6
Source File: regrtest.py    From jawfish with MIT License 4 votes vote down vote up
def __init__(self):
        import os.path
        from test import test_timeout

        self.valid = False
        expected = None
        for item in _expectations:
            if sys.platform.startswith(item[0]):
                expected = item[1]
                break
        if expected is not None:
            self.expected = set(expected.split())

            # These are broken tests, for now skipped on every platform.
            # XXX Fix these!
            self.expected.add('test_nis')

            # expected to be skipped on every platform, even Linux
            if not os.path.supports_unicode_filenames:
                self.expected.add('test_pep277')

            # doctest, profile and cProfile tests fail when the codec for the
            # fs encoding isn't built in because PyUnicode_Decode() adds two
            # calls into Python.
            encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
            if sys.getfilesystemencoding().lower() not in encs:
                self.expected.add('test_profile')
                self.expected.add('test_cProfile')
                self.expected.add('test_doctest')

            if test_timeout.skip_expected:
                self.expected.add('test_timeout')

            if sys.platform != "win32":
                # test_sqlite is only reliable on Windows where the library
                # is distributed with Python
                WIN_ONLY = {"test_unicode_file", "test_winreg",
                            "test_winsound", "test_startfile",
                            "test_sqlite", "test_msilib"}
                self.expected |= WIN_ONLY

            if sys.platform != 'sunos5':
                self.expected.add('test_nis')

            if support.python_is_optimized():
                self.expected.add("test_gdb")

            self.valid = True