Tests that fileinput.close() does nothing if fileinput._state is None
(self)
| 631 | """Unit tests for fileinput.close()""" |
| 632 | |
| 633 | def test_state_is_None(self): |
| 634 | """Tests that fileinput.close() does nothing if fileinput._state |
| 635 | is None""" |
| 636 | fileinput._state = None |
| 637 | fileinput.close() |
| 638 | self.assertIsNone(fileinput._state) |
| 639 | |
| 640 | def test_state_is_not_None(self): |
| 641 | """Tests that fileinput.close() invokes close() on fileinput._state |
nothing calls this directly
no test coverage detected