Commit 7caaf5d
committed
Improve
Use `urllib.parse.quote()` rather than `urllib.request.pathname2url()` to
generate expected URLs in tests for `path_to_url()`. This makes
expectations a little more explicit.
(The implementation of `path_to_url()` itself calls `pathname2url()`, and
so we were marking our own homework!)path_to_url() tests1 parent a4b40f6 commit 7caaf5d
File tree
2 files changed
+5
-4
lines changed- news
- tests/unit
2 files changed
+5
-4
lines changedWhitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments