From 69d01e19f2f4ef1ef09a301fd6ab59170de2df18 Mon Sep 17 00:00:00 2001 From: drygin_alexey Date: Mon, 13 Mar 2023 22:16:35 +0700 Subject: [PATCH] update duplicate.py #11790 --- duplicate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/duplicate.py b/duplicate.py index e7ac5767d8b2c..ddbd46b8e8d61 100644 --- a/duplicate.py +++ b/duplicate.py @@ -1,6 +1,7 @@ import importlib import os import glob +import sys def get_all_functions_from_directory(root_dir, startswith="test"): @@ -40,4 +41,4 @@ def check_duplicate(): common_set = check_duplicate() if len(common_set) != 0: print("This function already exists in the functional API.") - exit(1) + sys.exit(1)