@@ -522,6 +522,8 @@ def _encode(t):
522
522
self .assertEqual (result .url , defrag )
523
523
self .assertEqual (result .fragment , frag )
524
524
525
+ # TODO: RUSTPYTHON
526
+ @unittest .expectedFailure
525
527
def test_urlsplit_scoped_IPv6 (self ):
526
528
p = urllib .parse .urlsplit ('http://[FE80::822a:a8ff:fe49:470c%tESt]:1234' )
527
529
self .assertEqual (p .hostname , "fe80::822a:a8ff:fe49:470c%tESt" )
@@ -881,6 +883,8 @@ def test_parse_qsl_encoding(self):
881
883
errors = "ignore" )
882
884
self .assertEqual (result , [('key' , '\u0141 -' )])
883
885
886
+ # TODO: RUSTPYTHON
887
+ @unittest .skip ("TODO: RUSTPYTHON" )
884
888
def test_parse_qsl_max_num_fields (self ):
885
889
with self .assertRaises (ValueError ):
886
890
urllib .parse .parse_qs ('&' .join (['a=a' ]* 11 ), max_num_fields = 10 )
@@ -945,6 +949,8 @@ def test_issue14072(self):
945
949
self .assertEqual (p2 .scheme , 'tel' )
946
950
self .assertEqual (p2 .path , '+31641044153' )
947
951
952
+ # TODO: RUSTPYTHON
953
+ @unittest .expectedFailure
948
954
def test_port_casting_failure_message (self ):
949
955
message = "Port could not be cast to integer value as 'oracle'"
950
956
p1 = urllib .parse .urlparse ('http://Server=sde; Service=sde:oracle' )
@@ -996,6 +1002,8 @@ def test_all(self):
996
1002
expected .append (name )
997
1003
self .assertCountEqual (urllib .parse .__all__ , expected )
998
1004
1005
+ # TODO: RUSTPYTHON
1006
+ @unittest .skip ("TODO: RUSTPYTHON" )
999
1007
def test_urlsplit_normalization (self ):
1000
1008
# Certain characters should never occur in the netloc,
1001
1009
# including under normalization.
@@ -1029,6 +1037,8 @@ class Utility_Tests(unittest.TestCase):
1029
1037
"""Testcase to test the various utility functions in the urllib."""
1030
1038
# In Python 2 this test class was in test_urllib.
1031
1039
1040
+ # TODO: RUSTPYTHON
1041
+ @unittest .skip ("TODO: RUSTPYTHON" )
1032
1042
def test_splittype (self ):
1033
1043
splittype = urllib .parse ._splittype
1034
1044
self .assertEqual (splittype ('type:opaquestring' ), ('type' , 'opaquestring' ))
@@ -1037,6 +1047,8 @@ def test_splittype(self):
1037
1047
self .assertEqual (splittype ('type:' ), ('type' , '' ))
1038
1048
self .assertEqual (splittype ('type:opaque:string' ), ('type' , 'opaque:string' ))
1039
1049
1050
+ # TODO: RUSTPYTHON
1051
+ @unittest .skip ("TODO: RUSTPYTHON" )
1040
1052
def test_splithost (self ):
1041
1053
splithost = urllib .parse ._splithost
1042
1054
self .assertEqual (splithost ('//www.example.org:80/foo/bar/baz.html' ),
@@ -1066,6 +1078,8 @@ def test_splithost(self):
1066
1078
self .assertEqual (splithost ("//example.net/file#" ),
1067
1079
('example.net' , '/file#' ))
1068
1080
1081
+ # TODO: RUSTPYTHON
1082
+ @unittest .skip ("TODO: RUSTPYTHON" )
1069
1083
def test_splituser (self ):
1070
1084
splituser = urllib .parse ._splituser
1071
1085
self .
assertEqual (
splituser (
'User:[email protected] :080' ),
@@ -1079,6 +1093,8 @@ def test_splituser(self):
1079
1093
self .
assertEqual (
splituser (
'[email protected] :[email protected] :080' ),
1080
1094
(
'[email protected] :Pass' ,
'www.python.org:080' ))
1081
1095
1096
+ # TODO: RUSTPYTHON
1097
+ @unittest .skip ("TODO: RUSTPYTHON" )
1082
1098
def test_splitpasswd (self ):
1083
1099
# Some of the password examples are not sensible, but it is added to
1084
1100
# confirming to RFC2617 and addressing issue4675.
@@ -1097,6 +1113,8 @@ def test_splitpasswd(self):
1097
1113
self .assertEqual (splitpasswd ('user' ), ('user' , None ))
1098
1114
self .assertEqual (splitpasswd (':ab' ), ('' , 'ab' ))
1099
1115
1116
+ # TODO: RUSTPYTHON
1117
+ @unittest .skip ("TODO: RUSTPYTHON" )
1100
1118
def test_splitport (self ):
1101
1119
splitport = urllib .parse ._splitport
1102
1120
self .assertEqual (splitport ('parrot:88' ), ('parrot' , '88' ))
@@ -1108,6 +1126,8 @@ def test_splitport(self):
1108
1126
self .assertEqual (splitport ('[::1]' ), ('[::1]' , None ))
1109
1127
self .assertEqual (splitport (':88' ), ('' , '88' ))
1110
1128
1129
+ # TODO: RUSTPYTHON
1130
+ @unittest .skip ("TODO: RUSTPYTHON" )
1111
1131
def test_splitnport (self ):
1112
1132
splitnport = urllib .parse ._splitnport
1113
1133
self .assertEqual (splitnport ('parrot:88' ), ('parrot' , 88 ))
@@ -1120,6 +1140,8 @@ def test_splitnport(self):
1120
1140
self .assertEqual (splitnport ('parrot:cheese' ), ('parrot' , None ))
1121
1141
self .assertEqual (splitnport ('parrot:cheese' , 55 ), ('parrot' , None ))
1122
1142
1143
+ # TODO: RUSTPYTHON
1144
+ @unittest .skip ("TODO: RUSTPYTHON" )
1123
1145
def test_splitquery (self ):
1124
1146
# Normal cases are exercised by other tests; ensure that we also
1125
1147
# catch cases with no port specified (testcase ensuring coverage)
@@ -1132,6 +1154,8 @@ def test_splitquery(self):
1132
1154
('http://python.org/fake' , None ))
1133
1155
self .assertEqual (splitquery ('?foo=bar' ), ('' , 'foo=bar' ))
1134
1156
1157
+ # TODO: RUSTPYTHON
1158
+ @unittest .skip ("TODO: RUSTPYTHON" )
1135
1159
def test_splittag (self ):
1136
1160
splittag = urllib .parse ._splittag
1137
1161
self .assertEqual (splittag ('http://example.com?foo=bar#baz' ),
@@ -1144,6 +1168,8 @@ def test_splittag(self):
1144
1168
self .assertEqual (splittag ('http://example.com?foo=bar#baz#boo' ),
1145
1169
('http://example.com?foo=bar#baz' , 'boo' ))
1146
1170
1171
+ # TODO: RUSTPYTHON
1172
+ @unittest .skip ("TODO: RUSTPYTHON" )
1147
1173
def test_splitattr (self ):
1148
1174
splitattr = urllib .parse ._splitattr
1149
1175
self .assertEqual (splitattr ('/path;attr1=value1;attr2=value2' ),
@@ -1153,6 +1179,8 @@ def test_splitattr(self):
1153
1179
('' , ['attr1=value1' , 'attr2=value2' ]))
1154
1180
self .assertEqual (splitattr ('/path' ), ('/path' , []))
1155
1181
1182
+ # TODO: RUSTPYTHON
1183
+ @unittest .skip ("TODO: RUSTPYTHON" )
1156
1184
def test_splitvalue (self ):
1157
1185
# Normal cases are exercised by other tests; test pathological cases
1158
1186
# with no key/value pairs. (testcase ensuring coverage)
@@ -1163,6 +1191,8 @@ def test_splitvalue(self):
1163
1191
self .assertEqual (splitvalue ('foobar' ), ('foobar' , None ))
1164
1192
self .assertEqual (splitvalue ('foo=bar=baz' ), ('foo' , 'bar=baz' ))
1165
1193
1194
+ # TODO: RUSTPYTHON
1195
+ @unittest .skip ("TODO: RUSTPYTHON" )
1166
1196
def test_to_bytes (self ):
1167
1197
result = urllib .parse ._to_bytes ('http://www.python.org' )
1168
1198
self .assertEqual (result , 'http://www.python.org' )
@@ -1178,76 +1208,98 @@ def test_unwrap(self):
1178
1208
1179
1209
class DeprecationTest (unittest .TestCase ):
1180
1210
1211
+ # TODO: RUSTPYTHON
1212
+ @unittest .expectedFailure
1181
1213
def test_splittype_deprecation (self ):
1182
1214
with self .assertWarns (DeprecationWarning ) as cm :
1183
1215
urllib .parse .splittype ('' )
1184
1216
self .assertEqual (str (cm .warning ),
1185
1217
'urllib.parse.splittype() is deprecated as of 3.8, '
1186
1218
'use urllib.parse.urlparse() instead' )
1187
1219
1220
+ # TODO: RUSTPYTHON
1221
+ @unittest .expectedFailure
1188
1222
def test_splithost_deprecation (self ):
1189
1223
with self .assertWarns (DeprecationWarning ) as cm :
1190
1224
urllib .parse .splithost ('' )
1191
1225
self .assertEqual (str (cm .warning ),
1192
1226
'urllib.parse.splithost() is deprecated as of 3.8, '
1193
1227
'use urllib.parse.urlparse() instead' )
1194
1228
1229
+ # TODO: RUSTPYTHON
1230
+ @unittest .expectedFailure
1195
1231
def test_splituser_deprecation (self ):
1196
1232
with self .assertWarns (DeprecationWarning ) as cm :
1197
1233
urllib .parse .splituser ('' )
1198
1234
self .assertEqual (str (cm .warning ),
1199
1235
'urllib.parse.splituser() is deprecated as of 3.8, '
1200
1236
'use urllib.parse.urlparse() instead' )
1201
1237
1238
+ # TODO: RUSTPYTHON
1239
+ @unittest .expectedFailure
1202
1240
def test_splitpasswd_deprecation (self ):
1203
1241
with self .assertWarns (DeprecationWarning ) as cm :
1204
1242
urllib .parse .splitpasswd ('' )
1205
1243
self .assertEqual (str (cm .warning ),
1206
1244
'urllib.parse.splitpasswd() is deprecated as of 3.8, '
1207
1245
'use urllib.parse.urlparse() instead' )
1208
1246
1247
+ # TODO: RUSTPYTHON
1248
+ @unittest .expectedFailure
1209
1249
def test_splitport_deprecation (self ):
1210
1250
with self .assertWarns (DeprecationWarning ) as cm :
1211
1251
urllib .parse .splitport ('' )
1212
1252
self .assertEqual (str (cm .warning ),
1213
1253
'urllib.parse.splitport() is deprecated as of 3.8, '
1214
1254
'use urllib.parse.urlparse() instead' )
1215
1255
1256
+ # TODO: RUSTPYTHON
1257
+ @unittest .expectedFailure
1216
1258
def test_splitnport_deprecation (self ):
1217
1259
with self .assertWarns (DeprecationWarning ) as cm :
1218
1260
urllib .parse .splitnport ('' )
1219
1261
self .assertEqual (str (cm .warning ),
1220
1262
'urllib.parse.splitnport() is deprecated as of 3.8, '
1221
1263
'use urllib.parse.urlparse() instead' )
1222
1264
1265
+ # TODO: RUSTPYTHON
1266
+ @unittest .expectedFailure
1223
1267
def test_splitquery_deprecation (self ):
1224
1268
with self .assertWarns (DeprecationWarning ) as cm :
1225
1269
urllib .parse .splitquery ('' )
1226
1270
self .assertEqual (str (cm .warning ),
1227
1271
'urllib.parse.splitquery() is deprecated as of 3.8, '
1228
1272
'use urllib.parse.urlparse() instead' )
1229
1273
1274
+ # TODO: RUSTPYTHON
1275
+ @unittest .expectedFailure
1230
1276
def test_splittag_deprecation (self ):
1231
1277
with self .assertWarns (DeprecationWarning ) as cm :
1232
1278
urllib .parse .splittag ('' )
1233
1279
self .assertEqual (str (cm .warning ),
1234
1280
'urllib.parse.splittag() is deprecated as of 3.8, '
1235
1281
'use urllib.parse.urlparse() instead' )
1236
1282
1283
+ # TODO: RUSTPYTHON
1284
+ @unittest .expectedFailure
1237
1285
def test_splitattr_deprecation (self ):
1238
1286
with self .assertWarns (DeprecationWarning ) as cm :
1239
1287
urllib .parse .splitattr ('' )
1240
1288
self .assertEqual (str (cm .warning ),
1241
1289
'urllib.parse.splitattr() is deprecated as of 3.8, '
1242
1290
'use urllib.parse.urlparse() instead' )
1243
1291
1292
+ # TODO: RUSTPYTHON
1293
+ @unittest .expectedFailure
1244
1294
def test_splitvalue_deprecation (self ):
1245
1295
with self .assertWarns (DeprecationWarning ) as cm :
1246
1296
urllib .parse .splitvalue ('' )
1247
1297
self .assertEqual (str (cm .warning ),
1248
1298
'urllib.parse.splitvalue() is deprecated as of 3.8, '
1249
1299
'use urllib.parse.parse_qsl() instead' )
1250
1300
1301
+ # TODO: RUSTPYTHON
1302
+ @unittest .expectedFailure
1251
1303
def test_to_bytes_deprecation (self ):
1252
1304
with self .assertWarns (DeprecationWarning ) as cm :
1253
1305
urllib .parse .to_bytes ('' )
0 commit comments