Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Jul 30, 2024
1 parent b5b99b0 commit d7f7140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/monitor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def get_process_using_file(file_path):
result = subprocess.run(["handle.exe", file_path],
capture_output=True, text=True)
output = result.stdout
print(output)

# 解析输出以查找进程ID
lines = output.splitlines()
Expand All @@ -177,7 +178,7 @@ def get_process_using_file(file_path):

if _is_windows:
print("Current PID", os.getpid())
print(get_process_using_file(self.monitor.path_db))
print("The PID using file", self.monitor.path_db, get_process_using_file(self.monitor.path_db))

shutil.rmtree("./test_runs")

Expand Down

0 comments on commit d7f7140

Please sign in to comment.