|
7 | 7 | from pathlib import Path |
8 | 8 | from functools import wraps |
9 | 9 | from io import StringIO |
10 | | -from inform import Error, Info, render, indent, join, dedent |
| 10 | +from inform import Error, Info, join, dedent |
11 | 11 | from quantiphy import Quantity |
12 | 12 | import subprocess |
13 | | -import json |
14 | 13 | import os |
15 | 14 |
|
16 | 15 | test_api = Path(__file__).parent / 'official_tests' / 'api' |
@@ -1195,7 +1194,6 @@ def test_key_utilities(): |
1195 | 1194 |
|
1196 | 1195 | unknown_norm = ('user_names', 'Anastacia Pickett Cheek', 'unknown key') |
1197 | 1196 | unknown_orig = ('user Names', 'Anastacia Pickett__Cheek', 'unknown key') |
1198 | | - unknown_index = ('scores', 3) |
1199 | 1197 |
|
1200 | 1198 | def normalize_key(key, parent_keys): |
1201 | 1199 | if parent_keys == ('user_names',): |
@@ -1290,7 +1288,7 @@ def test_load_dialect(): |
1290 | 1288 | @parametrize( |
1291 | 1289 | "top,expected", [(any,None), (dict,{}), (list,[]), (str,"")] |
1292 | 1290 | ) |
1293 | | -def test_empty_blank_lines(top, expected): |
| 1291 | +def test_empty(top, expected): |
1294 | 1292 | # just blank lines |
1295 | 1293 | document = "" |
1296 | 1294 |
|
@@ -1599,7 +1597,7 @@ def __nestedtext_converter__(self): |
1599 | 1597 | converters = {ntInfo: False} |
1600 | 1598 | with pytest.raises(nt.NestedTextError) as exc: |
1601 | 1599 | dump(y, tmp_path, width=80, converters=converters) |
1602 | | - assert str(exc.value) == f"info: unsupported type (ntInfo)." |
| 1600 | + assert str(exc.value) == "info: unsupported type (ntInfo)." |
1603 | 1601 |
|
1604 | 1602 | # converting arrow object |
1605 | 1603 | date = '1969-07-20' |
@@ -2070,7 +2068,7 @@ def test_binary_round_trip(tmp_path): |
2070 | 2068 |
|
2071 | 2069 | # dump nestedtext to a binary file |
2072 | 2070 | with nt_path.open('wb') as f: |
2073 | | - test_nt = nt.dump(orig_data, f) |
| 2071 | + nt.dump(orig_data, f) |
2074 | 2072 |
|
2075 | 2073 | # read nestedtext from a binary file |
2076 | 2074 | with nt_path.open('rb') as f: |
|
0 commit comments