Skip to content

Commit 6b5c780

Browse files
committed
Minor function name change in test.
1 parent 1fa338e commit 6b5c780

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_stl.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ def test_pass_std_vector_pair_int():
404404

405405

406406
def test_list_caster_fully_consumes_generator_object():
407-
def gen_mix():
407+
def gen_invalid():
408408
yield from [1, 2.0, 3]
409409

410-
gen_obj = gen_mix()
410+
gen_obj = gen_invalid()
411411
with pytest.raises(TypeError):
412412
m.pass_std_vector_int(gen_obj)
413413
assert not tuple(gen_obj)
@@ -483,10 +483,10 @@ def test_pass_std_map_int():
483483
],
484484
)
485485
def test_map_caster_fully_consumes_generator_object(items, expected_exception):
486-
def gen_mix():
486+
def gen_invalid():
487487
yield from items
488488

489-
gen_obj = gen_mix()
489+
gen_obj = gen_invalid()
490490
with pytest.raises(expected_exception):
491491
m.pass_std_map_int(FakePyMappingGenObj(gen_obj))
492492
assert not tuple(gen_obj)

0 commit comments

Comments
 (0)