Skip to content

Commit 91e8695

Browse files
committed
Mark unsupported tests
1 parent 4387d96 commit 91e8695

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Lib/test/test_urlparse.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ def _encode(t):
522522
self.assertEqual(result.url, defrag)
523523
self.assertEqual(result.fragment, frag)
524524

525+
# TODO: RUSTPYTHON
526+
@unittest.expectedFailure
525527
def test_urlsplit_scoped_IPv6(self):
526528
p = urllib.parse.urlsplit('http://[FE80::822a:a8ff:fe49:470c%tESt]:1234')
527529
self.assertEqual(p.hostname, "fe80::822a:a8ff:fe49:470c%tESt")
@@ -881,6 +883,8 @@ def test_parse_qsl_encoding(self):
881883
errors="ignore")
882884
self.assertEqual(result, [('key', '\u0141-')])
883885

886+
# TODO: RUSTPYTHON
887+
@unittest.skip("TODO: RUSTPYTHON")
884888
def test_parse_qsl_max_num_fields(self):
885889
with self.assertRaises(ValueError):
886890
urllib.parse.parse_qs('&'.join(['a=a']*11), max_num_fields=10)
@@ -945,6 +949,8 @@ def test_issue14072(self):
945949
self.assertEqual(p2.scheme, 'tel')
946950
self.assertEqual(p2.path, '+31641044153')
947951

952+
# TODO: RUSTPYTHON
953+
@unittest.expectedFailure
948954
def test_port_casting_failure_message(self):
949955
message = "Port could not be cast to integer value as 'oracle'"
950956
p1 = urllib.parse.urlparse('http://Server=sde; Service=sde:oracle')
@@ -996,6 +1002,8 @@ def test_all(self):
9961002
expected.append(name)
9971003
self.assertCountEqual(urllib.parse.__all__, expected)
9981004

1005+
# TODO: RUSTPYTHON
1006+
@unittest.skip("TODO: RUSTPYTHON")
9991007
def test_urlsplit_normalization(self):
10001008
# Certain characters should never occur in the netloc,
10011009
# including under normalization.
@@ -1029,6 +1037,8 @@ class Utility_Tests(unittest.TestCase):
10291037
"""Testcase to test the various utility functions in the urllib."""
10301038
# In Python 2 this test class was in test_urllib.
10311039

1040+
# TODO: RUSTPYTHON
1041+
@unittest.skip("TODO: RUSTPYTHON")
10321042
def test_splittype(self):
10331043
splittype = urllib.parse._splittype
10341044
self.assertEqual(splittype('type:opaquestring'), ('type', 'opaquestring'))
@@ -1037,6 +1047,8 @@ def test_splittype(self):
10371047
self.assertEqual(splittype('type:'), ('type', ''))
10381048
self.assertEqual(splittype('type:opaque:string'), ('type', 'opaque:string'))
10391049

1050+
# TODO: RUSTPYTHON
1051+
@unittest.skip("TODO: RUSTPYTHON")
10401052
def test_splithost(self):
10411053
splithost = urllib.parse._splithost
10421054
self.assertEqual(splithost('//www.example.org:80/foo/bar/baz.html'),
@@ -1066,6 +1078,8 @@ def test_splithost(self):
10661078
self.assertEqual(splithost("//example.net/file#"),
10671079
('example.net', '/file#'))
10681080

1081+
# TODO: RUSTPYTHON
1082+
@unittest.skip("TODO: RUSTPYTHON")
10691083
def test_splituser(self):
10701084
splituser = urllib.parse._splituser
10711085
self.assertEqual(splituser('User:[email protected]:080'),
@@ -1079,6 +1093,8 @@ def test_splituser(self):
10791093
self.assertEqual(splituser('[email protected]:[email protected]:080'),
10801094
('[email protected]:Pass', 'www.python.org:080'))
10811095

1096+
# TODO: RUSTPYTHON
1097+
@unittest.skip("TODO: RUSTPYTHON")
10821098
def test_splitpasswd(self):
10831099
# Some of the password examples are not sensible, but it is added to
10841100
# confirming to RFC2617 and addressing issue4675.
@@ -1097,6 +1113,8 @@ def test_splitpasswd(self):
10971113
self.assertEqual(splitpasswd('user'), ('user', None))
10981114
self.assertEqual(splitpasswd(':ab'), ('', 'ab'))
10991115

1116+
# TODO: RUSTPYTHON
1117+
@unittest.skip("TODO: RUSTPYTHON")
11001118
def test_splitport(self):
11011119
splitport = urllib.parse._splitport
11021120
self.assertEqual(splitport('parrot:88'), ('parrot', '88'))
@@ -1108,6 +1126,8 @@ def test_splitport(self):
11081126
self.assertEqual(splitport('[::1]'), ('[::1]', None))
11091127
self.assertEqual(splitport(':88'), ('', '88'))
11101128

1129+
# TODO: RUSTPYTHON
1130+
@unittest.skip("TODO: RUSTPYTHON")
11111131
def test_splitnport(self):
11121132
splitnport = urllib.parse._splitnport
11131133
self.assertEqual(splitnport('parrot:88'), ('parrot', 88))
@@ -1120,6 +1140,8 @@ def test_splitnport(self):
11201140
self.assertEqual(splitnport('parrot:cheese'), ('parrot', None))
11211141
self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None))
11221142

1143+
# TODO: RUSTPYTHON
1144+
@unittest.skip("TODO: RUSTPYTHON")
11231145
def test_splitquery(self):
11241146
# Normal cases are exercised by other tests; ensure that we also
11251147
# catch cases with no port specified (testcase ensuring coverage)
@@ -1132,6 +1154,8 @@ def test_splitquery(self):
11321154
('http://python.org/fake', None))
11331155
self.assertEqual(splitquery('?foo=bar'), ('', 'foo=bar'))
11341156

1157+
# TODO: RUSTPYTHON
1158+
@unittest.skip("TODO: RUSTPYTHON")
11351159
def test_splittag(self):
11361160
splittag = urllib.parse._splittag
11371161
self.assertEqual(splittag('http://example.com?foo=bar#baz'),
@@ -1144,6 +1168,8 @@ def test_splittag(self):
11441168
self.assertEqual(splittag('http://example.com?foo=bar#baz#boo'),
11451169
('http://example.com?foo=bar#baz', 'boo'))
11461170

1171+
# TODO: RUSTPYTHON
1172+
@unittest.skip("TODO: RUSTPYTHON")
11471173
def test_splitattr(self):
11481174
splitattr = urllib.parse._splitattr
11491175
self.assertEqual(splitattr('/path;attr1=value1;attr2=value2'),
@@ -1153,6 +1179,8 @@ def test_splitattr(self):
11531179
('', ['attr1=value1', 'attr2=value2']))
11541180
self.assertEqual(splitattr('/path'), ('/path', []))
11551181

1182+
# TODO: RUSTPYTHON
1183+
@unittest.skip("TODO: RUSTPYTHON")
11561184
def test_splitvalue(self):
11571185
# Normal cases are exercised by other tests; test pathological cases
11581186
# with no key/value pairs. (testcase ensuring coverage)
@@ -1163,6 +1191,8 @@ def test_splitvalue(self):
11631191
self.assertEqual(splitvalue('foobar'), ('foobar', None))
11641192
self.assertEqual(splitvalue('foo=bar=baz'), ('foo', 'bar=baz'))
11651193

1194+
# TODO: RUSTPYTHON
1195+
@unittest.skip("TODO: RUSTPYTHON")
11661196
def test_to_bytes(self):
11671197
result = urllib.parse._to_bytes('http://www.python.org')
11681198
self.assertEqual(result, 'http://www.python.org')
@@ -1178,76 +1208,98 @@ def test_unwrap(self):
11781208

11791209
class DeprecationTest(unittest.TestCase):
11801210

1211+
# TODO: RUSTPYTHON
1212+
@unittest.expectedFailure
11811213
def test_splittype_deprecation(self):
11821214
with self.assertWarns(DeprecationWarning) as cm:
11831215
urllib.parse.splittype('')
11841216
self.assertEqual(str(cm.warning),
11851217
'urllib.parse.splittype() is deprecated as of 3.8, '
11861218
'use urllib.parse.urlparse() instead')
11871219

1220+
# TODO: RUSTPYTHON
1221+
@unittest.expectedFailure
11881222
def test_splithost_deprecation(self):
11891223
with self.assertWarns(DeprecationWarning) as cm:
11901224
urllib.parse.splithost('')
11911225
self.assertEqual(str(cm.warning),
11921226
'urllib.parse.splithost() is deprecated as of 3.8, '
11931227
'use urllib.parse.urlparse() instead')
11941228

1229+
# TODO: RUSTPYTHON
1230+
@unittest.expectedFailure
11951231
def test_splituser_deprecation(self):
11961232
with self.assertWarns(DeprecationWarning) as cm:
11971233
urllib.parse.splituser('')
11981234
self.assertEqual(str(cm.warning),
11991235
'urllib.parse.splituser() is deprecated as of 3.8, '
12001236
'use urllib.parse.urlparse() instead')
12011237

1238+
# TODO: RUSTPYTHON
1239+
@unittest.expectedFailure
12021240
def test_splitpasswd_deprecation(self):
12031241
with self.assertWarns(DeprecationWarning) as cm:
12041242
urllib.parse.splitpasswd('')
12051243
self.assertEqual(str(cm.warning),
12061244
'urllib.parse.splitpasswd() is deprecated as of 3.8, '
12071245
'use urllib.parse.urlparse() instead')
12081246

1247+
# TODO: RUSTPYTHON
1248+
@unittest.expectedFailure
12091249
def test_splitport_deprecation(self):
12101250
with self.assertWarns(DeprecationWarning) as cm:
12111251
urllib.parse.splitport('')
12121252
self.assertEqual(str(cm.warning),
12131253
'urllib.parse.splitport() is deprecated as of 3.8, '
12141254
'use urllib.parse.urlparse() instead')
12151255

1256+
# TODO: RUSTPYTHON
1257+
@unittest.expectedFailure
12161258
def test_splitnport_deprecation(self):
12171259
with self.assertWarns(DeprecationWarning) as cm:
12181260
urllib.parse.splitnport('')
12191261
self.assertEqual(str(cm.warning),
12201262
'urllib.parse.splitnport() is deprecated as of 3.8, '
12211263
'use urllib.parse.urlparse() instead')
12221264

1265+
# TODO: RUSTPYTHON
1266+
@unittest.expectedFailure
12231267
def test_splitquery_deprecation(self):
12241268
with self.assertWarns(DeprecationWarning) as cm:
12251269
urllib.parse.splitquery('')
12261270
self.assertEqual(str(cm.warning),
12271271
'urllib.parse.splitquery() is deprecated as of 3.8, '
12281272
'use urllib.parse.urlparse() instead')
12291273

1274+
# TODO: RUSTPYTHON
1275+
@unittest.expectedFailure
12301276
def test_splittag_deprecation(self):
12311277
with self.assertWarns(DeprecationWarning) as cm:
12321278
urllib.parse.splittag('')
12331279
self.assertEqual(str(cm.warning),
12341280
'urllib.parse.splittag() is deprecated as of 3.8, '
12351281
'use urllib.parse.urlparse() instead')
12361282

1283+
# TODO: RUSTPYTHON
1284+
@unittest.expectedFailure
12371285
def test_splitattr_deprecation(self):
12381286
with self.assertWarns(DeprecationWarning) as cm:
12391287
urllib.parse.splitattr('')
12401288
self.assertEqual(str(cm.warning),
12411289
'urllib.parse.splitattr() is deprecated as of 3.8, '
12421290
'use urllib.parse.urlparse() instead')
12431291

1292+
# TODO: RUSTPYTHON
1293+
@unittest.expectedFailure
12441294
def test_splitvalue_deprecation(self):
12451295
with self.assertWarns(DeprecationWarning) as cm:
12461296
urllib.parse.splitvalue('')
12471297
self.assertEqual(str(cm.warning),
12481298
'urllib.parse.splitvalue() is deprecated as of 3.8, '
12491299
'use urllib.parse.parse_qsl() instead')
12501300

1301+
# TODO: RUSTPYTHON
1302+
@unittest.expectedFailure
12511303
def test_to_bytes_deprecation(self):
12521304
with self.assertWarns(DeprecationWarning) as cm:
12531305
urllib.parse.to_bytes('')

0 commit comments

Comments
 (0)