More from test.test_support
- .TESTFN
- .EnvironmentVarGuard()
- .import_module()
- .CleanImport()
- .run_unittest()
- .threading_setup()
- .threading_cleanup()
- .unlink()
- .verbose()
- .check_py3k_warnings()
- .reap_children()
- .check_warnings()
- .findfile()
- .captured_stdout()
- .rmtree()
- .import_fresh_module()
- .strip_python_stderr()
- .unload()
- .use_resources()
- .HAVE_DOCSTRINGS
Related Methods
- os.path.join()
- sys.exit()
- sys.argv()
- os.path.dirname()
- sys.stderr()
- re.compile()
- os.path.exists()
- sys.path()
- os.path.abspath()
- os.environ()
- sys.stdout()
- pkgutil.get_data()
- ast.Load()
- BaseHTTPServer.DEFAULT_ERROR_CONTENT_TYPE
- _ctypes._pointer_type_cache.clear()
- _ctypes._SimpleCData.c_wchar_p_from_param()
- _ctypes._SimpleCData.c_char_p_from_param()
- _testcapi.INT_MAX
- _testcapi.UINT_MAX
- _functools.partial()
Python test.test_support._1G Examples
The following are 1
code examples of test.test_support._1G().
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.test_support
, or try the search function
.
Example #1
Source File: test_zlib.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_big_buffer(self, size): data = b"nyan" * (_1G + 1) self.assertEqual(zlib.crc32(data) & 0xFFFFFFFF, 1044521549) self.assertEqual(zlib.adler32(data) & 0xFFFFFFFF, 2256789997)