<!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tutorial/ - posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7 - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list - searching our issue tracker (https://github.com/python/cpython/issues) to see if your problem has already been reported --> **Bug report** `itertools.chain.from_iterable` is safe to use with infinite iterable, but no test exists. example: ```python chain.from_iterable(repeat(range(5))) ``` **Your environment** <!-- Include as many relevant details as possible about the environment you experienced the bug in --> - CPython versions tested on: `3.10.4` and current `main` branch - Operating system and architecture: N/A