Skip to content

Commit 8c726e2

Browse files
committed
Compatiblity with old python versions
1 parent 0ad7718 commit 8c726e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_uniform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def test_uopengraph(self):
3030
def test_uopengraph_duplicated_priorities(self):
3131
# Ensures that first seen property is kept when flattening
3232
data = _uopengraph([{'properties':
33-
[(f'prop_{k}', f'value_{v}')
33+
[('prop_{}'.format(k), 'value_{}'.format(v))
3434
for k in range(5)
3535
for v in range(5)],
3636
'namespace': 'namespace'}])
3737
for k in range(5):
38-
assert data[0][f'prop_{k}'] == 'value_0'
38+
assert data[0]['prop_{}'.format(k)] == 'value_0'
3939

4040
def test_umicroformat(self):
4141
expected = [ { '@context': 'http://microformats.org/wiki/',

0 commit comments

Comments
 (0)