MCPcopy Index your code
hub / github.com/python/cpython / test_state_is_None

Method test_state_is_None

Lib/test/test_fileinput.py:594–601  ·  view source on GitHub ↗

Tests invoking fileinput.input() when fileinput._state is None Expect it to create and return a new fileinput.FileInput object with all method parameters passed explicitly to the __init__() method; also ensure that fileinput._state is set to the returned i

(self)

Source from the content-addressed store, hash-verified

592 self.do_test_call_input()
593
594 def test_state_is_None(self):
595 """Tests invoking fileinput.input() when fileinput._state is None
596 Expect it to create and return a new fileinput.FileInput object
597 with all method parameters passed explicitly to the __init__()
598 method; also ensure that fileinput._state is set to the returned
599 instance."""
600 fileinput._state = None
601 self.do_test_call_input()
602
603 def do_test_call_input(self):
604 """Tests that fileinput.input() creates a new fileinput.FileInput

Callers

nothing calls this directly

Calls 1

do_test_call_inputMethod · 0.95

Tested by

no test coverage detected