Skip to content

Commit

Permalink
Eliminate some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Feb 12, 2024
1 parent 8d53434 commit b52040d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ def test_found_mp3val(self):
shutil.copy("/bin/echo", os.path.join(self.temp_dir, "mp3val"))
with captureStdout() as stdout:
beets.ui._raw_main(["check", "--list-tools"])
self.assertRegexpMatches(stdout.getvalue(), r"mp3val *found")
self.assertRegex(stdout.getvalue(), r"mp3val *found")

def test_oggz_validate_not_found(self):
with captureStdout() as stdout:
beets.ui._raw_main(["check", "--list-tools"])
self.assertRegexpMatches(stdout.getvalue(), r"oggz-validate *not found")
self.assertRegex(stdout.getvalue(), r"oggz-validate *not found")
4 changes: 2 additions & 2 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import beets.library
import beets.plugins
import beets.ui
from beets.mediafile import MediaFile
from mediafile import MediaFile

from beetsplug.check import IntegrityChecker, verify_checksum

Expand Down Expand Up @@ -123,7 +123,7 @@ def test_log_error_for_invalid_checksum(self):

with captureLog() as logs:
beets.ui._raw_main(["write", item.title])
self.assertRegexpMatches(
self.assertRegex(
"\n".join(logs),
r"error reading .*: checksum did not match value in library",
)
Expand Down

0 comments on commit b52040d

Please sign in to comment.