File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 4
4
- `tox -e profile`
5
5
- `firefox .tox/prof/output.svg`
6
6
"""
7
+
7
8
from pathlib import Path
8
9
9
10
import tomli
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: MIT
2
2
# SPDX-FileCopyrightText: 2021 Taneli Hukkinen
3
3
# Licensed to PSF under a Contributor Agreement.
4
-
5
4
"""Utilities for tests that are in the "burntsushi" format."""
6
5
7
6
import datetime
@@ -53,11 +52,14 @@ def convert(obj): # noqa: C901
53
52
def normalize (obj : Any ) -> Any :
54
53
"""Normalize test objects.
55
54
56
- This normalizes primitive values (e.g. floats), and also converts from
57
- TOML compliance format [1] to BurntSushi format [2].
55
+ This normalizes primitive values (e.g. floats), and also converts
56
+ from TOML compliance format [1] to BurntSushi format [2].
58
57
59
- [1] https://github.com/toml-lang/compliance/blob/db7c3211fda30ff9ddb10292f4aeda7e2e10abc4/docs/json-encoding.md # noqa: E501
60
- [2] https://github.com/BurntSushi/toml-test/blob/4634fdf3a6ecd6aaea5f4cdcd98b2733c2694993/README.md # noqa: E501
58
+ [1]
59
+ https://github.com/toml-lang/compliance/blob/db7c3211fda30ff9ddb10292f4aeda7e2e10abc4/docs/json-encoding.md
60
+ # noqa: E501 [2]
61
+ https://github.com/BurntSushi/toml-test/blob/4634fdf3a6ecd6aaea5f4cdcd98b2733c2694993/README.md
62
+ # noqa: E501
61
63
"""
62
64
if isinstance (obj , list ):
63
65
return [normalize (item ) for item in obj ]
You can’t perform that action at this time.
0 commit comments