Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a8a53d

Browse files
committed
test_urllib is failing on Windows. I don't know why, but I can at least
change the test to give a clue about *where* it's failing.
1 parent 983874d commit 1a8a53d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/test_urllib.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
expected = 'abcdefghijklmnopqrstuvwxyz%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f8%f9%fa%fb%fc%fd%fe%ffABCDEFGHIJKLMNOPQRSTUVWXYZ%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d8%d9%da%db%dc%dd%de'
1313

1414
test = urllib.quote(chars)
15-
verify(test == expected, "urllib.quote problem")
15+
verify(test == expected, "urllib.quote problem 1")
1616
test2 = urllib.unquote(expected)
1717
verify(test2 == chars)
1818

1919
in1 = "abc/def"
2020
out1_1 = "abc/def"
2121
out1_2 = "abc%2fdef"
2222

23-
verify(urllib.quote(in1) == out1_1, "urllib.quote problem")
24-
verify(urllib.quote(in1, '') == out1_2, "urllib.quote problem")
23+
verify(urllib.quote(in1) == out1_1, "urllib.quote problem 2")
24+
verify(urllib.quote(in1, '') == out1_2, "urllib.quote problem 3")
2525

2626
in2 = "abc?def"
2727
out2_1 = "abc%3fdef"
2828
out2_2 = "abc?def"
2929

30-
verify(urllib.quote(in2) == out2_1, "urllib.quote problem")
31-
verify(urllib.quote(in2, '?') == out2_2, "urllib.quote problem")
30+
verify(urllib.quote(in2) == out2_1, "urllib.quote problem 4")
31+
verify(urllib.quote(in2, '?') == out2_2, "urllib.quote problem 5")

0 commit comments

Comments
 (0)