summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line.py
Commit message (Collapse)AuthorAgeFilesLines
* Suppress assert dialogs in test_cmd_line.Steve Dower2015-03-081-1/+2
|
* Skip some tests that require a subinterpreter launched with -E or -I when theGregory P. Smith2015-02-041-1/+3
|\ | | | | | | | | | | | | | | interpreter under test is being run in an environment that requires the use of environment variables such as PYTHONHOME in order to function at all. Adds a test.script_helper.interpreter_requires_environment() function to be used with @unittest.skipIf on stdlib test methods requiring this.
| * Skip some tests that require a subinterpreter launched with -E or -I when theGregory P. Smith2015-02-041-1/+3
|/ | | | | | | | interpreter under test is being run in an environment that requires the use of environment variables such as PYTHONHOME in order to function at all. Adds a private test.script_helper._interpreter_requires_environment() function to be used with @unittest.skipIf on stdlib test methods requiring this.
* revert 7b833bd1f509. I misread the side effect that the code was triggering.Gregory P. Smith2015-01-231-2/+4
| | | | | *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
* Remove the unimplemented but ignored without='-E' parameters being passed toGregory P. Smith2015-01-231-4/+2
| | | | | | script_helper.assert_python_failure(). No such feature has ever existed, thus it doesn't do what the comment claims. (It does add a 'without' variable to the environment of the child process but that was not intended)
* Close #18754: Run Python child processes in isolated more in the test suite.Victor Stinner2013-10-121-1/+1
|
* Issue #16400: Add command line option for isolated mode.Christian Heimes2013-08-101-0/+26
| | | | | | | | | | -I Run Python in isolated mode. This also implies -E and -s. In isolated mode sys.path contains neither the script’s directory nor the user’s site-packages directory. All PYTHON* environment variables are ignored, too. Further restrictions may be imposed to prevent the user from injecting malicious code.
* Issue #18338: `python --version` now prints version string to stdout, andSerhiy Storchaka2013-07-111-2/+4
| | | | not to stderr. Patch by Berker Peksag and Michael Dickens.
* Issue #17206: Fix test_cmd_line and test_faulthandler for my previous changeVictor Stinner2013-06-251-5/+12
| | | | | (test.regrtest and test.script_helper enable faulthandler module in subprocesses).
* Issue #17516: do not create useless tuple: remove dummy commas in testsVictor Stinner2013-03-261-2/+2
|
* #17323: The "[X refs, Y blocks]" printed by debug builds has been disabled ↵Ezio Melotti2013-03-251-0/+28
| | | | by default. It can be re-enabled with the `-X showrefcount` option.
* Merge debug print removal with 3.3.Ezio Melotti2012-11-231-4/+0
|\
| * Merge debug print removal with 3.2.Ezio Melotti2012-11-231-4/+0
| |\
| | * Remove debug print.Ezio Melotti2012-11-231-4/+0
| | |
* | | #16306: merge with 3.3.Ezio Melotti2012-11-231-3/+15
|\ \ \ | |/ /
| * | #16306: merge with 3.2.Ezio Melotti2012-11-231-3/+15
| |\ \ | | |/
| | * #16306: report only the first unknown option and add more tests. Patch by ↵Ezio Melotti2012-11-231-3/+15
| | | | | | | | | | | | Serhiy Storchaka.
* | | #16309: avoid using deprecated method and turn docstring in a comment.Ezio Melotti2012-11-221-6/+6
| | |
* | | #16306: merge with 3.3.Ezio Melotti2012-11-181-1/+8
|\ \ \ | |/ /
| * | #16306: merge with 3.2.Ezio Melotti2012-11-181-1/+8
| |\ \ | | |/
| | * #16306: Fix multiple error messages when unknown command line parameters ↵Ezio Melotti2012-11-181-1/+8
| | | | | | | | | | | | where passed to the interpreter. Patch by Hieu Nguyen.
| * | Issue #16218, #16444: Backport improvment on tests for non-ASCII charactersVictor Stinner2012-11-121-3/+3
| | |
* | | Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack2012-11-071-0/+12
|\ \ \ | |/ / | | | | | | Patch by Victor Stinner.
| * | Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack2012-11-071-0/+12
| |\ \ | | |/ | | | | | | Patch by Victor Stinner.
| | * Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack2012-11-071-0/+12
| | | | | | | | | | | | Patch by Victor Stinner.
| | * Close #13119: use "\r\n" newline for sys.stdout/err on WindowsVictor Stinner2012-08-031-0/+17
| | | | | | | | | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
* | | Issue #16414: Add support.FS_NONASCII and support.TESTFN_NONASCIIVictor Stinner2012-11-061-3/+3
| | | | | | | | | | | | | | | These constants are used to test functions with non-ASCII data, especially filenames.
* | | Issue #7317: Display full tracebacks when an error occurs asynchronously.Andrew Svetlov2012-11-031-1/+1
| | | | | | | | | | | | Patch by Alon Horev with update by Alexey Kachayev.
* | | Issue #16309: Make PYTHONPATH= behavior the same as if PYTHONPATH not set at ↵Andrew Svetlov2012-11-031-0/+17
|/ / | | | | | | | | | | all. Thanks to Armin Rigo and Alexey Kachayev.
* | Close #13119: use "\r\n" newline for sys.stdout/err on WindowsVictor Stinner2012-08-031-0/+17
| | | | | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
* | enable hash randomization by defaultBenjamin Peterson2012-02-211-2/+2
| |
* | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-0/+16
|\ \ | |/
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-0/+16
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Merged revisions 86081 via svnmerge fromBrian Curtin2010-11-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86081 | brian.curtin | 2010-11-01 09:00:33 -0500 (Mon, 01 Nov 2010) | 2 lines Close subprocess pipes to clear ResourceWarning messages in debug mode. ........
| | * Merged revisions 80116 via svnmerge fromVictor Stinner2010-04-161-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80116 | victor.stinner | 2010-04-16 17:10:27 +0200 (ven., 16 avril 2010) | 2 lines Issue #7605: Fix test_cmd_line if the current working directory is not ASCII ........
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | | Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou2011-11-281-0/+39
|\ \ \ | |/ / | | | | | | | | | It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).
| * | Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou2011-11-281-0/+39
| | | | | | | | | | | | | | | It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).
* | | Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou2011-11-261-0/+19
|\ \ \ | |/ / | | | | | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
| * | Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou2011-11-261-0/+19
| | | | | | | | | | | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
* | | Merge #10206: add test for previously fixed bug.R David Murray2011-06-241-0/+7
|\ \ \ | |/ /
| * | #10206: add test for previously fixed bug.R David Murray2011-06-241-0/+7
| | | | | | | | | | | | Patch by Francisco Martín Brugué.
| * | Merged revisions 88530 via svnmerge fromVictor Stinner2011-02-231-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines Issue #11272: Fix input() and sys.stdin for Windows newline On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n'). ........
* | | Remove traces of division_warning left over from Python 2 (#10998)Éric Araujo2011-03-261-6/+0
| | |
* | | Normalize the encoding names for Latin-1 and UTF-8 toMarc-André Lemburg2011-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303.
* | | Issue #11272: Fix input() and sys.stdin for Windows newlineVictor Stinner2011-02-231-0/+26
|/ / | | | | | | | | On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n').
* | Issue #10601: sys.displayhook uses 'backslashreplace' error handler onVictor Stinner2010-12-041-0/+18
| | | | | | | | UnicodeEncodeError.
* | Use script_helper in one more testAntoine Pitrou2010-11-091-28/+14
| |
* | Close subprocess pipes to clear ResourceWarning messages in debug mode.Brian Curtin2010-11-011-0/+1
| |