From 28ccfbfc51068a663a80764e14074df5edf2b5ba Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期五, 13 三月 2026 17:41:41 +0800
Subject: [PATCH] 提交

---
 tests/run_test.py |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/run_test.py b/tests/run_test.py
index 4aa075e..9ff648b 100644
--- a/tests/run_test.py
+++ b/tests/run_test.py
@@ -19,7 +19,7 @@
     for case in case_list:
         test_case = unittest.defaultTestLoader.discover(start_dir=test_dir, pattern=case)
         test_suite.addTest(test_case)
-        if hasattr(test_case, '__iter__'):
+        if hasattr(test_case, "__iter__"):
             for subcase in test_case:
                 if list_tests:
                     print(subcase)
@@ -40,12 +40,12 @@
             sys.exit(len(result.errors))
 
 
-if __name__ == '__main__':
-    parser = argparse.ArgumentParser('test runner')
-    parser.add_argument('--list_tests', action='store_true', help='list all tests')
-    parser.add_argument('--pattern', default='test_*.py', help='test file pattern')
-    parser.add_argument('--test_dir', default='tests', help='directory to be tested')
-    parser.add_argument('--disable_profile', action='store_true', help='disable profiling')
+if __name__ == "__main__":
+    parser = argparse.ArgumentParser("test runner")
+    parser.add_argument("--list_tests", action="store_true", help="list all tests")
+    parser.add_argument("--pattern", default="test_*.py", help="test file pattern")
+    parser.add_argument("--test_dir", default="tests", help="directory to be tested")
+    parser.add_argument("--disable_profile", action="store_true", help="disable profiling")
     args = parser.parse_args()
-    print(f'working dir: {os.getcwd()}')
-    main(args)
\ No newline at end of file
+    print(f"working dir: {os.getcwd()}")
+    main(args)

--
Gitblit v1.9.1