Skip to content

Commit e27e387

Browse files
committed
Fix test
1 parent 4bda01b commit e27e387

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/test_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def test_dict_to_file() -> None:
262262

263263
assert not os.path.exists(created_tmp)
264264

265-
with pytest.raises(ValueError):
265+
with pytest.raises(AttributeError):
266266
with temp_single_json(123) as _:
267267
pass
268268

@@ -271,10 +271,9 @@ def test_temp_inits():
271271
dict_good = {'a': 0.5}
272272
with temp_inits([dict_good, dict_good]) as base_file:
273273
fg1 = base_file[:-5] + '_1.json'
274-
fg2 = base_file[:-5] + '_1.json'
274+
fg2 = base_file[:-5] + '_2.json'
275275
assert os.path.exists(fg1)
276276
assert os.path.exists(fg2)
277-
assert fg1 != fg2
278277
with open(fg1) as fg1_d:
279278
assert json.load(fg1_d) == dict_good
280279
with open(fg2) as fg2_d:

0 commit comments

Comments
 (0)