diff -r 3919a69d7a20 Lib/fileinput.py --- a/Lib/fileinput.py Sun Apr 12 21:53:21 2015 -0400 +++ b/Lib/fileinput.py Mon Apr 20 01:19:26 2015 -0300 @@ -81,8 +81,9 @@ import sys, os -__all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno", - "isfirstline", "isstdin", "FileInput"] +__all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno", + "fileno", "isfirstline", "isstdin", "FileInput", "hook_compressed", + "hook_encoded"] _state = None diff -r 3919a69d7a20 Lib/test/test_fileinput.py --- a/Lib/test/test_fileinput.py Sun Apr 12 21:53:21 2015 -0400 +++ b/Lib/test/test_fileinput.py Mon Apr 20 01:19:26 2015 -0300 @@ -887,5 +887,19 @@ check('rb', ['A\n', 'B\r\n', 'C\r', 'D\u20ac']) +class MiscTest(unittest.TestCase): + + def test_all(self): + expected = set() + blacklist = {} + for name in dir(fileinput): + if name.startswith('_') or name in blacklist: + continue + module_object = getattr(fileinput, name) + if getattr(module_object, '__module__', None) == 'fileinput': + expected.add(name) + self.assertCountEqual(fileinput.__all__, expected) + + if __name__ == "__main__": unittest.main()