From 46bfed3ff2e2775538827d101424effc9f99952c Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Jun 21 2024 22:02:33 +0000 Subject: Fix test Signed-off-by: Troy Dawson --- diff --git a/tests/test_distgit.py b/tests/test_distgit.py index 0b90f6c..257aa13 100644 --- a/tests/test_distgit.py +++ b/tests/test_distgit.py @@ -17,7 +17,7 @@ class TestDistGitInvalid(unittest.TestCase, CatchWarningsMixin): def test_invalid_branchstring_raises(self): self.branchstring = 'nope-not-a-branch' - with self.assertRaises(UserWarning): + with self.assertWarns(UserWarning): self.d = DistGitDirectory(self.branchstring) class TestDistgitOnlySig(unittest.TestCase):