From f07344444d6d2f04a1f93e2954f4910b194bee0c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 25 Aug 2025 12:07:15 +0200 Subject: Fix a broken test Reported-By: https://github.com/NixOS/nixpkgs/issues/436421 --- tests/test_libmat2.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 2147ee8..19e47aa 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py @@ -640,12 +640,8 @@ class TestCleaning(unittest.TestCase): with open('./tests/data/clean.html', 'w') as f: f.write('<title><pouet/><meta/>') - p = web.HTMLParser('./tests/data/clean.html') - self.assertTrue(p.remove_all()) - with open('./tests/data/clean.cleaned.html', 'r') as f: - self.assertEqual(f.read(), '') - os.remove('./tests/data/clean.html') - os.remove('./tests/data/clean.cleaned.html') + with self.assertRaises(ValueError): + p = web.HTMLParser('./tests/data/clean.html') with open('./tests/data/clean.html', 'w') as f: f.write('Some<b>metadata</b><br/>') -- cgit v1.3