Commit 748af5c2 authored by Giampaolo Rodola's avatar Giampaolo Rodola

test.support: considering the module is a mix of utilities unrelated with each...

test.support: considering the module is a mix of utilities unrelated with each other divide __all__ in sub-sections so that it can be used as a quick-reference doc
parent 13766aa2
...@@ -63,25 +63,43 @@ except ImportError: ...@@ -63,25 +63,43 @@ except ImportError:
resource = None resource = None
__all__ = [ __all__ = [
"Error", "TestFailed", "ResourceDenied", "import_module", "verbose", # globals
"use_resources", "max_memuse", "record_original_stdout", "PIPE_MAX_SIZE", "verbose", "max_memuse", "use_resources", "failfast",
"get_original_stdout", "unload", "unlink", "rmtree", "forget", # exceptions
"Error", "TestFailed", "ResourceDenied",
# imports
"import_module", "import_fresh_module", "CleanImport",
# modules
"unload", "forget",
# io
"record_original_stdout", "get_original_stdout", "captured_stdout",
"captured_stdin", "captured_stderr",
# filesystem
"TESTFN", "SAVEDCWD", "unlink", "rmtree", "temp_cwd", "findfile",
"create_empty_file", "can_symlink",
# unittest
"is_resource_enabled", "requires", "requires_freebsd_version", "is_resource_enabled", "requires", "requires_freebsd_version",
"requires_linux_version", "requires_mac_ver", "find_unused_port", "requires_linux_version", "requires_mac_ver", "check_syntax_error",
"bind_port", "IPV6_ENABLED", "is_jython", "TESTFN", "HOST", "SAVEDCWD", "TransientResource", "time_out", "socket_peer_reset", "ioerror_peer_reset",
"temp_cwd", "findfile", "create_empty_file", "sortdict", "transient_internet", "BasicTestRunner", "run_unittest", "run_doctest",
"check_syntax_error", "open_urlresource", "check_warnings", "CleanImport", "skip_unless_symlink", "requires_gzip", "requires_bz2", "requires_lzma",
"EnvironmentVarGuard", "TransientResource", "captured_stdout", "bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute",
"captured_stdin", "captured_stderr", "time_out", "socket_peer_reset", "requires_IEEE_754", "skip_unless_xattr", "requires_zlib",
"ioerror_peer_reset", "run_with_locale", 'temp_umask', "anticipate_failure",
"transient_internet", "set_memlimit", "bigmemtest", "bigaddrspacetest", # sys
"BasicTestRunner", "run_unittest", "run_doctest", "threading_setup", "is_jython", "check_impl_detail",
"threading_cleanup", "reap_children", "cpython_only", "check_impl_detail", # network
"get_attribute", "swap_item", "swap_attr", "requires_IEEE_754", "HOST", "IPV6_ENABLED", "find_unused_port", "bind_port", "open_urlresource",
"TestHandler", "Matcher", "can_symlink", "skip_unless_symlink", # processes
"skip_unless_xattr", "import_fresh_module", "requires_zlib", 'temp_umask', "reap_children",
"PIPE_MAX_SIZE", "failfast", "anticipate_failure", "run_with_tz", # logging
"requires_gzip", "requires_bz2", "requires_lzma", "SuppressCrashReport" "TestHandler",
# threads
"threading_setup", "threading_cleanup",
# miscellaneous
"check_warnings", "EnvironmentVarGuard", "run_with_locale", "swap_item",
"swap_attr", "Matcher", "set_memlimit", "SuppressCrashReport", "sortdict",
"run_with_tz",
] ]
class Error(Exception): class Error(Exception):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment