Unmark passing tests

This commit is contained in:
Padraic Fanning committed 2021-04-18 15:32:10 -04:00
1 parent 9f43e2c176
commit 2764dd7b4d
1 file changed
-14
-14
View File
@@ -136,8 +136,6 @@ class MimeTypesTestCase(unittest.TestCase):
strict=True)
self.assertEqual(exts, ['.g3', '.g\xb3'])
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_init_reinitializes(self):
# Issue 4936: make sure an init starts clean
# First, put some poison into the types table
@@ -148,8 +146,6 @@ class MimeTypesTestCase(unittest.TestCase):
# Poison should be gone.
self.assertEqual(mimetypes.guess_extension('foo/bar'), None)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_preferred_extension(self):
def check_extensions():
self.assertEqual(mimetypes.guess_extension('application/octet-stream'), '.bin')
@@ -191,8 +187,6 @@ class MimeTypesTestCase(unittest.TestCase):
self.assertEqual(types_map, mimetypes.types_map)
self.assertEqual(common_types, mimetypes.common_types)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_path_like_ob(self):
filename = "LICENSE.txt"
filepath = pathlib.Path(filename)
@@ -256,8 +250,6 @@ class MimetypesCliTestCase(unittest.TestCase):
mimetypes._main()
return output.getvalue().strip()
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_help_option(self):
support.patch(self, sys, "argv", [sys.executable, "-h"])
with support.captured_stdout() as output:
@@ -267,8 +259,6 @@ class MimetypesCliTestCase(unittest.TestCase):
self.assertIn("Usage: mimetypes.py", output.getvalue())
self.assertEqual(cm.exception.code, 0)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_invalid_option(self):
support.patch(self, sys, "argv", [sys.executable, "--invalid"])
with support.captured_stdout() as output:
@@ -278,8 +268,6 @@ class MimetypesCliTestCase(unittest.TestCase):
self.assertIn("Usage: mimetypes.py", output.getvalue())
self.assertEqual(cm.exception.code, 1)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_guess_extension(self):
eq = self.assertEqual
@@ -292,8 +280,6 @@ class MimetypesCliTestCase(unittest.TestCase):
extension = self.mimetypes_cmd("-e", "image/jpeg")
eq(extension, ".jpg")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_guess_type(self):
eq = self.assertEqual