summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | Patch by Christie Wilson.
* merge 3.4 (#24096)Benjamin Peterson2015-05-031-0/+12
|\
| * merge 3.3 (#24096)Benjamin Peterson2015-05-031-0/+12
| |\
| | * be more robust against the filters list changing under us (closes #24096)Benjamin Peterson2015-05-031-0/+12
| | |
* | | Issue #23027: test_warnings now passes all tests when run it with -Werror.Berker Peksag2015-04-081-11/+14
| | |
* | | Issue #23016: A warning no longer produces an AttributeError when the programSerhiy Storchaka2014-12-101-0/+9
|\ \ \ | |/ / | | | | | | is run with pythonw.exe.
| * | Issue #23016: A warning no longer produces AttributeError when the programSerhiy Storchaka2014-12-101-0/+9
| | | | | | | | | | | | is run with pythonw.exe.
* | | Issue #4180: The warnings registries are now reset when the filters are ↵Antoine Pitrou2014-09-181-2/+47
|\ \ \ | |/ / | | | | | | modified.
| * | Issue #4180: The warnings registries are now reset when the filters are ↵Antoine Pitrou2014-09-181-2/+47
| | | | | | | | | | | | modified.
* | | Merge for issue #22191 fixBrett Cannon2014-08-221-0/+19
|\ \ \ | |/ /
| * | Issue #22191: Fix warnings.__all__.Brett Cannon2014-08-221-0/+19
| | | | | | | | | | | | Thanks to Jon Poler for the patch.
* | | Issue #16382: Improve exception message of warnings.warn() for bad category.Berker Peksag2014-07-111-0/+35
| | | | | | | | | | | | Initial patch by Phil Elson.
* | | Issue #20355: -W command line options now have higher priority than the ↵Antoine Pitrou2014-04-281-2/+14
|/ / | | | | | | PYTHONWARNINGS environment variable. Patch by Arfrever.
* | Issue #20373: generalize use of test.script_helper in test_warnings. Patch ↵Antoine Pitrou2014-01-291-43/+22
|\ \ | |/ | | | | by Arfrever.
| * Issue #20373: generalize use of test.script_helper in test_warnings. Patch ↵Antoine Pitrou2014-01-291-43/+22
| | | | | | | | by Arfrever.
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
| |
| * Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-2/+1
| |
* | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-2/+1
| |
* | Issue #19424: Fix test_warnings for locale encoding unable to encodeVictor Stinner2013-10-291-6/+7
| | | | | | | | "\xe9\u20ac" characters
* | Issue #19424: Fix the warnings module to accept filename containing surrogateVictor Stinner2013-10-291-0/+12
| | | | | | | | characters.
* | Issue #19421: add an unit test for warnings.warn() during finalizationVictor Stinner2013-10-281-0/+19
|/
* #16905: test_bufio now works with unittest test discovery. Initial patch by ↵Ezio Melotti2013-01-101-30/+22
| | | | Berker Peksag.
* Make warnings accept a callable for showwarnings instead ofBrett Cannon2011-07-181-6/+8
| | | | | | | restricting itself to just functions and methods (which allows built-in functions to be used, etc.). Closes issue #10271. Thanks to lekma for the bug report.
* Issue #12467: warnings: fix a race condition if a warning is emitted atVictor Stinner2011-07-041-0/+12
| | | | shutdown, if globals()['__file__'] is None.
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-12/+12
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| * I'm only backporting the tests (which run fine), as well asAntoine Pitrou2010-11-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a shortened version of Lib/test/script_helper.py. Merged revisions 86395 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86395 | antoine.pitrou | 2010-11-10 14:55:25 +0100 (mer., 10 nov. 2010) | 4 lines Issue #10372: Import the warnings module only after the IO library is initialized, so as to avoid bootstrap issues with the '-W' option. ........
| * Fix test_warnings on Windows (don't change current directory)Victor Stinner2010-05-201-7/+5
| |
| * Recorded merge of revisions 81364 via svnmerge fromVictor Stinner2010-05-201-9/+40
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81364 | victor.stinner | 2010-05-19 22:40:50 +0200 (mer., 19 mai 2010) | 3 lines Issue #8766: Initialize _warnings module before importing the first module. Fix a crash if an empty directory called "encodings" exists in sys.path. ........
| * Note: only the relevant parts of r79474 are merged.Florent Xicluna2010-03-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78793,78798-78799,78977,79095,79196,79474 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78793 | florent.xicluna | 2010-03-08 13:25:35 +0100 (lun, 08 mar 2010) | 2 lines Fix macpath to deal with bytes ................ r78798 | florent.xicluna | 2010-03-08 14:32:17 +0100 (lun, 08 mar 2010) | 18 lines Merged revisions 78777,78787,78790 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78777 | florent.xicluna | 2010-03-08 00:49:03 +0100 (lun, 08 mar 2010) | 4 lines Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717. It should fix transient failures on test_multiprocessing. ........ r78787 | florent.xicluna | 2010-03-08 08:21:16 +0100 (lun, 08 mar 2010) | 2 lines Don't fail on a debug() statement, if the worker PID is (still) None. ........ r78790 | florent.xicluna | 2010-03-08 12:01:39 +0100 (lun, 08 mar 2010) | 2 lines On finalize, don't try to join not started process. ........ ................ r78799 | florent.xicluna | 2010-03-08 15:44:41 +0100 (lun, 08 mar 2010) | 2 lines Fix ntpath abspath to deal with bytes. ................ r78977 | florent.xicluna | 2010-03-15 14:14:39 +0100 (lun, 15 mar 2010) | 2 lines Fix \xhh specs, #1889. (an oversight of r60193, r60210). ................ r79095 | florent.xicluna | 2010-03-19 15:40:31 +0100 (ven, 19 mar 2010) | 2 lines Rename test.test_support to test.support for 3.x. ................ r79196 | florent.xicluna | 2010-03-21 13:29:50 +0100 (dim, 21 mar 2010) | 9 lines Merged revisions 79195 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79195 | florent.xicluna | 2010-03-21 13:27:20 +0100 (dim, 21 mar 2010) | 2 lines Issue #8179: Fix macpath.realpath() on a non-existing path. ........ ................ r79474 | florent.xicluna | 2010-03-28 01:25:02 +0100 (dim, 28 mar 2010) | 33 lines Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-32/+32
| | | | | | | | | | | | | | | | | | | | 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* ........
| * Merged revisions 74046 via svnmerge fromHirokazu Yamamoto2009-07-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74046 | hirokazu.yamamoto | 2009-07-17 15:55:42 +0900 | 13 lines Merged revisions 74040,74042 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74040 | hirokazu.yamamoto | 2009-07-17 15:20:46 +0900 | 1 line Issue #6415: Fixed warnings.warn sagfault on bad formatted string. ........ r74042 | hirokazu.yamamoto | 2009-07-17 15:26:54 +0900 | 1 line NEWS about r74040. ........ ................
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-12/+12
| |
* | Issue #10372: Import the warnings module only after the IO library isAntoine Pitrou2010-11-101-0/+17
| | | | | | | | initialized, so as to avoid bootstrap issues with the '-W' option.
* | Issue #8766: Initialize _warnings module before importing the first module.Victor Stinner2010-05-191-11/+29
| | | | | | | | Fix a crash if an empty directory called "encodings" exists in sys.path.
* | #7301: decode $PYTHONWARNINGS in the same way as argv, test non-ascii valuesPhilip Jenvey2010-04-141-0/+13
| |
* | Merged revisions 79936 via svnmerge fromBenjamin Peterson2010-04-111-3/+6
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79936 | philip.jenvey | 2010-04-10 15:27:15 -0500 (Sat, 10 Apr 2010) | 3 lines fix PYTHONWARNINGS handling to not modify the original env value and improve its tests ........
* | Merged revisions 79878-79880 via svnmerge fromPhilip Jenvey2010-04-071-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79878 | philip.jenvey | 2010-04-06 16:24:45 -0700 (Tue, 06 Apr 2010) | 4 lines #7301: add the environment variable $PYTHONWARNINGS to supplement the -W command line option patch from Brian Curtin ........ r79879 | benjamin.peterson | 2010-04-06 16:32:27 -0700 (Tue, 06 Apr 2010) | 1 line tell people to update python.man, too ........ r79880 | philip.jenvey | 2010-04-06 16:38:57 -0700 (Tue, 06 Apr 2010) | 1 line document new PYTHONWARNINGS env var ........
* | Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge fromFlorent Xicluna2010-03-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........
* | Merged revisions 79049 via svnmerge fromFlorent Xicluna2010-03-181-11/+26
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79049 | florent.xicluna | 2010-03-18 20:51:47 +0100 (jeu, 18 mar 2010) | 2 lines #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. ........
* | use assert[Not]In where appropriateBenjamin Peterson2010-01-191-1/+1
| | | | | | | | A patch from Dave Malcolm.
* | Merged revisions 74040,74042 via svnmerge fromHirokazu Yamamoto2009-07-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74040 | hirokazu.yamamoto | 2009-07-17 15:20:46 +0900 | 1 line Issue #6415: Fixed warnings.warn sagfault on bad formatted string. ........ r74042 | hirokazu.yamamoto | 2009-07-17 15:26:54 +0900 | 1 line NEWS about r74040. ........
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-32/+32
|/
* Merged revisions 71799 via svnmerge fromNick Coghlan2009-04-221-8/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71799 | nick.coghlan | 2009-04-23 01:26:04 +1000 (Thu, 23 Apr 2009) | 1 line Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation) ........
* Merged revisions 71465 via svnmerge fromNick Coghlan2009-04-111-11/+19
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71465 | nick.coghlan | 2009-04-11 23:31:31 +1000 (Sat, 11 Apr 2009) | 1 line Issue 5354: Provide a standardised testing mechanism for doing fresh imports of modules, including the ability to block extension modules in order to test the pure Python fallbacks ........
* Merged revisions 70979 via svnmerge fromBrett Cannon2009-04-011-8/+8
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70979 | brett.cannon | 2009-04-01 13:25:48 -0700 (Wed, 01 Apr 2009) | 3 lines test_warnings ironically had a single test that was not protecting the warnings filter and was resetting it. ........