def test_runtime(self): runtime = cupyx.get_runtime_info() assert cupy.__version__ == runtime.cupy_version assert cupy.__version__ in str(runtime)
def show_config(): """Prints the current runtime configuration to standard output.""" _sys.stdout.write(str(_cupyx.get_runtime_info())) _sys.stdout.flush()
def test_show_config(self): with mock.patch('sys.stdout.write') as write_func: cupy.show_config() write_func.assert_called_once_with(str(cupyx.get_runtime_info()))