From 646829b802df3e8b3fb8d5775ecd4cace26e3b48 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Fri, 27 Mar 2020 18:25:54 +0800 Subject: [PATCH] ci(pytest): use common method install pip package GitOrigin-RevId: 87162b8b56c177ee38ba2c23a028f32b0888db4d --- python_module/setup.py | 3 +++ python_module/src/cpp/function_replace.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python_module/setup.py b/python_module/setup.py index 5a662cc84..43e72d7aa 100644 --- a/python_module/setup.py +++ b/python_module/setup.py @@ -87,6 +87,9 @@ setup_kwargs = dict( 'data': [ 'scipy', ], + 'ci': [ + 'pytest==5.3.0', + ], }, cmdclass={'build_ext': build_ext}, ) diff --git a/python_module/src/cpp/function_replace.cpp b/python_module/src/cpp/function_replace.cpp index 755714296..cbd59790a 100644 --- a/python_module/src/cpp/function_replace.cpp +++ b/python_module/src/cpp/function_replace.cpp @@ -35,7 +35,6 @@ void throw_fork_cuda_exc() { // call chain: // python -> fork() -> pthread_atfork -> CudaCheckOnFork -> // ForkAfterCudaError::throw_ - GILManager a; mgb_log_warn("try to raise python exception for fork after cuda"); PyErr_SetString(PyExc_SystemError, "fork after cuda has been initialized"); } -- GitLab