Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Nov 14, 2024
1 parent b90fd03 commit 629bccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_integration/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def test_exclude_pattern(via_json_1: str, via_json_2: str, tmp_path: Path):
# combine input json files, excluding those that end with _2.json
json_out_fullpath = combine_multiple_via_jsons(
[via_json_1, via_json_2],
exclude_pattern="\w+_2.json$",
exclude_pattern=r"\w+_2.json$",
json_out_dir=str(tmp_path),
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration/test_frame_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def assert_output_files(list_input_videos: list, cli_dict: dict) -> None:

# check filename format of images: <video_name>_frame_{frame_idx:08d}
list_regex_patterns = [
Path(input_video_str).stem + "_frame_[\d]{8}$"
Path(input_video_str).stem + r"_frame_[\d]{8}$"
for input_video_str in list_input_videos
]
for f in list_imgs:
Expand Down

0 comments on commit 629bccf

Please sign in to comment.