mirror of https://github.com/hpcaitech/ColossalAI
[test] refactor tests with spawn (#3452)
* [test] added spawn decorator * polish code * polish code * polish code * polish code * polish code * polish codepull/3343/head
parent
62f4e2eb07
commit
80eba05b0a
@ -1,7 +1,17 @@
|
||||
from .comparison import assert_equal, assert_not_equal, assert_close, assert_close_loose, assert_equal_in_group
|
||||
from .utils import parameterize, rerun_on_exception, rerun_if_address_is_in_use, skip_if_not_enough_gpus
|
||||
from .comparison import assert_close, assert_close_loose, assert_equal, assert_equal_in_group, assert_not_equal
|
||||
from .pytest_wrapper import run_on_environment_flag
|
||||
from .utils import (
|
||||
clear_cache_before_run,
|
||||
free_port,
|
||||
parameterize,
|
||||
rerun_if_address_is_in_use,
|
||||
rerun_on_exception,
|
||||
skip_if_not_enough_gpus,
|
||||
spawn,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
'assert_equal', 'assert_not_equal', 'assert_close', 'assert_close_loose', 'assert_equal_in_group', 'parameterize',
|
||||
'rerun_on_exception', 'rerun_if_address_is_in_use', 'skip_if_not_enough_gpus'
|
||||
'rerun_on_exception', 'rerun_if_address_is_in_use', 'skip_if_not_enough_gpus', 'free_port', 'spawn',
|
||||
'clear_cache_before_run', 'run_on_environment_flag'
|
||||
]
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue