diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-01-16 06:26:54 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-01-16 06:26:54 (GMT) |
commit | 7978e10441e84482d3d28e7c449d68b77c6310b6 (patch) | |
tree | 56b380281bfa9e1787ed43a8ed47047d37d1e341 /Lib/test/test_fileinput.py | |
parent | 7b3a82ff556ad3ec2c0d77c6daacddcac9d1bc7b (diff) | |
download | cpython-7978e10441e84482d3d28e7c449d68b77c6310b6.zip cpython-7978e10441e84482d3d28e7c449d68b77c6310b6.tar.gz cpython-7978e10441e84482d3d28e7c449d68b77c6310b6.tar.bz2 |
Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r-- | Lib/test/test_fileinput.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py index 91c1166..ad81304 100644 --- a/Lib/test/test_fileinput.py +++ b/Lib/test/test_fileinput.py @@ -24,6 +24,7 @@ from fileinput import FileInput, hook_encoded from test.support import verbose, TESTFN, run_unittest, check_warnings from test.support import unlink as safe_unlink +from test import support from unittest import mock @@ -913,5 +914,12 @@ class Test_hook_encoded(unittest.TestCase): check('rb', ['A\n', 'B\r\n', 'C\r', 'D\u20ac']) +class MiscTest(unittest.TestCase): + + def test_all(self): + blacklist = {'DEFAULT_BUFSIZE'} + support.check__all__(self, fileinput, blacklist=blacklist) + + if __name__ == "__main__": unittest.main() |