Mark failing/erroring tests

This commit is contained in:
Padraic Fanning committed 2021-02-26 13:16:49 -05:00
1 parent 960974f059
commit 18319cf33d
1 file changed
+16
+16
View File
@@ -334,6 +334,8 @@ class FileCookieJarTests(unittest.TestCase):
c = LWPCookieJar(filename)
self.assertEqual(c.filename, filename)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_constructor_with_path_like(self):
filename = pathlib.Path(test.support.TESTFN)
c = LWPCookieJar(filename)
@@ -343,6 +345,8 @@ class FileCookieJarTests(unittest.TestCase):
c = LWPCookieJar(None)
self.assertIsNone(c.filename)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_constructor_with_other_types(self):
class A:
pass
@@ -441,6 +445,8 @@ class CookieTests(unittest.TestCase):
## just the 7 special TLD's listed in their spec. And folks rely on
## that...
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_domain_return_ok(self):
# test optimization: .domain_return_ok() should filter out most
# domains in the CookieJar before we try to access them (because that
@@ -596,6 +602,8 @@ class CookieTests(unittest.TestCase):
self.assertIn('expires', cookies)
self.assertIn('version', cookies)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_expires(self):
# if expires is in future, keep cookie...
c = CookieJar()
@@ -744,6 +752,8 @@ class CookieTests(unittest.TestCase):
req = urllib.request.Request("http://www.example.com")
self.assertEqual(request_path(req), "/")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_path_prefix_match(self):
pol = DefaultCookiePolicy()
strict_ns_path_pol = DefaultCookiePolicy(strict_ns_set_path=True)
@@ -995,6 +1005,8 @@ class CookieTests(unittest.TestCase):
c.add_cookie_header(req)
self.assertFalse(req.has_header("Cookie"))
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_domain_block(self):
pol = DefaultCookiePolicy(
rfc2965=True, blocked_domains=[".acme.com"])
@@ -1085,6 +1097,8 @@ class CookieTests(unittest.TestCase):
c._cookies["www.acme.com"]["/"]["foo2"].secure,
"secure cookie registered non-secure")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_secure_block(self):
pol = DefaultCookiePolicy()
c = CookieJar(policy=pol)
@@ -1113,6 +1127,8 @@ class CookieTests(unittest.TestCase):
c.add_cookie_header(req)
self.assertFalse(req.has_header("Cookie"))
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_custom_secure_protocols(self):
pol = DefaultCookiePolicy(secure_protocols=["foos"])
c = CookieJar(policy=pol)