c8b1790ee7 
								
							 
						 
						
							
							
								
								python: change `pytest pkg/__init__.py` to only collect the `__init__.py` Module  
							
							... 
							
							
							
							Previously it would collect the entire package, but this is not what
users expect.
Refs #3749 
Fixes  #8976 
Fixes  #9263 
Fixes  #9313  
							
						 
						
							2023-06-23 20:42:50 +03:00  
				
					
						
							
							
								 
						
							
								a4a189ad99 
								
							 
						 
						
							
							
								
								Change PytestRemovedIn8Warning to error by default  
							
							... 
							
							
							
							Per our backward compatibility policy. 
							
						 
						
							2023-06-23 16:42:24 +03:00  
				
					
						
							
							
								 
						
							
								5dbfb8e108 
								
							 
						 
						
							
							
								
								Fix fixtures named teardown being considered by nose  ( #10696 )  
							
							... 
							
							
							
							Closes  #10597  
						
							2023-01-27 14:33:46 -03:00  
				
					
						
							
							
								 
						
							
								3bf2bc55b1 
								
							 
						 
						
							
							
								
								Add deprecations for tests written for `nose` ( #9907 )  
							
							... 
							
							
							
							Fixes  #9886  
						
							2022-10-09 17:16:33 -03:00  
				
					
						
							
							
								 
						
							
								7b6e477e2f 
								
							 
						 
						
							
							
								
								Revert "Deprecate raising unittest.SkipTest to skip tests during collection" ( #9710 )  
							
							... 
							
							
							
							This reverts commit 25e657bfc1 
							
						 
						
							2022-02-23 15:59:54 +02:00  
				
					
						
							
							
								 
						
							
								10e21dadee 
								
							 
						 
						
							
							
								
								python: skip nose setup/teardown fixtures if non-callable  
							
							... 
							
							
							
							Since commit 89f0b5b5a2Fix  #9391 . 
							
						 
						
							2021-12-25 12:09:11 +02:00  
				
					
						
							
							
								 
						
							
								062d91ab47 
								
							 
						 
						
							
							
								
								python: remove the `Instance` collector node  
							
							
							
						 
						
							2021-11-13 14:03:44 +02:00  
				
					
						
							
							
								 
						
							
								89f0b5b5a2 
								
							 
						 
						
							
							
								
								nose: fix class- and module-level fixture behavior  
							
							... 
							
							
							
							Fixes  #9272 .
Fixing the issue directly in the plugin is somewhat hard, so do it in
core. Since the plugin is going to be deprecated, I figure it's OK to
cheat a bit. 
						
							2021-11-06 14:45:24 +02:00  
				
					
						
							
							
								 
						
							
								ef5d81ad5c 
								
							 
						 
						
							
							
								
								add `assert_outcomes(warnings=)` functionality to `RunResult`  
							
							... 
							
							
							
							* expose `warnings=` to pytester `assert_outcomes()`
* fix test fallout from adding warnings= to assert_outcomes()
* #closes 8593 - Improve test and add a `changelog` entry for the change 
							
						 
						
							2021-07-31 15:25:10 +01:00  
				
					
						
							
							
								 
						
							
								19a2f7425d 
								
							 
						 
						
							
							
								
								Merge pull request  #8399  from atzannes/master  
							
							... 
							
							
							
							closes  #8394 
Generated fixture names for unittest/xunit/nose should start with underscore 
						
							2021-03-04 22:45:57 +02:00  
				
					
						
							
							
								 
						
							
								d4c81ffab4 
								
							 
						 
						
							
							
								
								Migrate test_nose.py from testdir to pytester  
							
							
							
						 
						
							2020-11-30 16:07:26 -06:00  
				
					
						
							
							
								 
						
							
								1350c601dc 
								
							 
						 
						
							
							
								
								Node.location: handle str with _node_location_to_relpath  
							
							
							
						 
						
							2020-01-23 10:45:31 +01:00  
				
					
						
							
							
								 
						
							
								8fa57c8384 
								
							 
						 
						
							
							
								
								tests: improve test for `nose.raises`  
							
							... 
							
							
							
							This should probably get transferred into a `pytest.fail` really, but
tests/documents the current behavior. 
							
						 
						
							2020-01-23 10:45:26 +01:00  
				
					
						
							
							
								 
						
							
								fb99b5c66e 
								
							 
						 
						
							
							
								
								Revert "Fix type errors after adding types to the `py` dependency"  
							
							... 
							
							
							
							This reverts commit 930a158a6a 
							
						 
						
							2020-01-20 23:44:56 +02:00  
				
					
						
							
							
								 
						
							
								abc890079f 
								
							 
						 
						
							
							
								
								typos  
							
							
							
						 
						
							2019-10-31 23:19:35 -05:00  
				
					
						
							
							
								 
						
							
								d19fe3c410 
								
							 
						 
						
							
							
								
								didnt -> didn't  
							
							
							
						 
						
							2019-08-01 15:10:39 +02:00  
				
					
						
							
							
								 
						
							
								be2be040f9 
								
							 
						 
						
							
							
								
								Clean up u' prefixes and py2 bytes conversions  
							
							
							
						 
						
							2019-06-04 17:50:34 -07:00  
				
					
						
							
							
								 
						
							
								4df529e5b9 
								
							 
						 
						
							
							
								
								Clean up __future__ and coding: in tests  
							
							
							
						 
						
							2019-06-03 12:08:02 -03:00  
				
					
						
							
							
								 
						
							
								a91fe1fedd 
								
							 
						 
						
							
							
								
								pre-commit run pyupgrade --all-files  
							
							
							
						 
						
							2019-06-03 12:08:02 -03:00  
				
					
						
							
							
								 
						
							
								3f1ec520fc 
								
							 
						 
						
							
							
								
								pre-commit run reorder-python-imports --all-files  
							
							
							
						 
						
							2019-06-03 12:08:01 -03:00  
				
					
						
							
							
								 
						
							
								5034399d7a 
								
							 
						 
						
							
							
								
								pre-commit run fix-encoding-pragma --all-files  
							
							
							
						 
						
							2019-06-03 12:08:01 -03:00  
				
					
						
							
							
								 
						
							
								dc75b6af47 
								
							 
						 
						
							
							
								
								Use fix-encoding-pragma pre-commit hook  
							
							
							
						 
						
							2019-05-14 15:56:31 -07:00  
				
					
						
							
							
								 
						
							
								08f3b02dfc 
								
							 
						 
						
							
							
								
								tests: fnmatch_lines: use list  
							
							... 
							
							
							
							For strings fnmatch_lines converts it into a Source objects, splitted on
newlines.  This is not necessary here, and it is more consistent to use
lists here in the first place. 
							
						 
						
							2019-03-23 11:36:18 +01:00  
				
					
						
							
							
								 
						
							
								1c5009c3fb 
								
							 
						 
						
							
							
								
								Handle unittest.SkipTest exception with non-ascii characters  
							
							... 
							
							
							
							Fix  #4669  
						
							2019-01-28 12:50:04 -02:00  
				
					
						
							
							
								 
						
							
								7eb28f9eb7 
								
							 
						 
						
							
							
								
								remove yield tests and compat properties  
							
							
							
						 
						
							2018-11-30 10:40:13 +01:00  
				
					
						
							
							
								 
						
							
								b3700f61ba 
								
							 
						 
						
							
							
								
								Fix formatting of print() calls  
							
							
							
						 
						
							2018-11-22 00:15:14 -08:00  
				
					
						
							
							
								 
						
							
								dc20dedbc7 
								
							 
						 
						
							
							
								
								Change RemovedInPytest4Warnings to errors by default  
							
							... 
							
							
							
							To keep existing tests which emit RemovedInPytest4Warnings running, decided
to go with a command line option because:
* Is harder to integrate an ini option with tests which already use an ini file
* It also marks tests which need to be removed/updated in 4.1, when
  RemovedInPytest4Warning and related functionality are removed.
Fix  #3737  
							
						 
						
							2018-11-12 16:10:57 -02:00  
				
					
						
							
							
								 
						
							
								2368fbb63c 
								
							 
						 
						
							
							
								
								Apply reorder-python-imports to all files  
							
							
							
						 
						
							2018-10-25 00:01:29 -07:00  
				
					
						
							
							
								 
						
							
								cbaa7dd56a 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks except pyupgrade  
							
							
							
						 
						
							2018-06-26 06:35:27 -07:00  
				
					
						
							
							
								 
						
							
								703e4b11ba 
								
							 
						 
						
							
							
								
								run black  
							
							
							
						 
						
							2018-05-23 16:48:46 +02:00  
				
					
						
							
							
								 
						
							
								aa51fcb2b6 
								
							 
						 
						
							
							
								
								Spelling and grammar fixes  
							
							
							
						 
						
							2018-05-13 12:06:09 +02:00  
				
					
						
							
							
								 
						
							
								03829fde8a 
								
							 
						 
						
							
							
								
								Fix linting E741: ambiguous variable name  
							
							
							
						 
						
							2017-11-04 13:59:10 -02:00  
				
					
						
							
							
								 
						
							
								b840622819 
								
							 
						 
						
							
							
								
								Fixed E302 flake8 errors  
							
							... 
							
							
							
							expected 2 blank lines, found 0 
							
						 
						
							2017-07-17 01:44:23 +02:00  
				
					
						
							
							
								 
						
							
								42a5d6bdfa 
								
							 
						 
						
							
							
								
								Add __future__ imports to all pytest modules  
							
							... 
							
							
							
							This prevents silly errors from creeping in Python 2 when testing in Python 3 
							
						 
						
							2017-03-16 22:45:40 -03:00  
				
					
						
							
							
								 
						
							
								fb0b90646e 
								
							 
						 
						
							
							
								
								New-style classes implemented for python 2.7 -  #2147  
							
							
							
						 
						
							2017-02-16 20:28:17 +01:00  
				
					
						
							
							
								 
						
							
								1eb5a690d4 
								
							 
						 
						
							
							
								
								Fix flake8 E305 and E306 errors  
							
							... 
							
							
							
							These errors started to appear with flake8-3.1.1, while they don't appear with
version 3.1.0 (weird). 
							
						 
						
							2016-11-20 18:59:15 -02:00  
				
					
						
							
							
								 
						
							
								af893aab26 
								
							 
						 
						
							
							
								
								Remove code related to support python <= 2.5  
							
							... 
							
							
							
							Fix  #1226  
						
							2015-12-16 16:16:22 -02:00  
				
					
						
							
							
								 
						
							
								e130a0257d 
								
							 
						 
						
							
							
								
								add test for @nose.tools.istest  
							
							
							
						 
						
							2015-08-08 21:08:05 +01:00  
				
					
						
							
							
								 
						
							
								9aec5cd52d 
								
							 
						 
						
							
							
								
								use runpytest() instead of runpytest_inprocess if a test can run as subprocess as well  
							
							... 
							
							
							
							--HG--
branch : testrefactor 
							
						 
						
							2015-04-28 12:05:08 +02:00  
				
					
						
							
							
								 
						
							
								db5649ec6a 
								
							 
						 
						
							
							
								
								streamline pytester API majorly:  
							
							... 
							
							
							
							- integrate conftest into pytester plugin
- introduce runpytest() to either call runpytest_inline (default) or
  runpytest_subprocess (python -m pytest)
- move testdir.inline_runsource1 to pdb tests
- strike some unneccessary methods.
- a new section "writing plugins" and some better pytester docs
--HG--
branch : testrefactor 
							
						 
						
							2015-04-28 11:54:53 +02:00  
				
					
						
							
							
								 
						
							
								d3e363b97a 
								
							 
						 
						
							
							
								
								- make API between runpytest() and inline_run() more similar  
							
							... 
							
							
							
							- shift a number of tests to become inline_run() tests
--HG--
branch : testrefactor 
							
						 
						
							2015-04-28 11:54:45 +02:00  
				
					
						
							
							
								 
						
							
								424e5d1394 
								
							 
						 
						
							
							
								
								make test suite more tolerable against xdist causing warnings itself (which it does  
							
							... 
							
							
							
							currently)
--HG--
branch : plugtestfix 
							
						 
						
							2015-04-27 15:06:47 +02:00  
				
					
						
							
							
								 
						
							
								94b1ce65c6 
								
							 
						 
						
							
							
								
								Fixed race condition with SkipTest when module not in sys.modules on collection.  
							
							
							
						 
						
							2014-03-14 14:04:54 +01:00  
				
					
						
							
							
								 
						
							
								505a34bb85 
								
							 
						 
						
							
							
								
								fix flakes failures  
							
							
							
						 
						
							2014-01-29 10:20:13 +01:00  
				
					
						
							
							
								 
						
							
								9fb2079458 
								
							 
						 
						
							
							
								
								replace py.test module references with pytest  
							
							... 
							
							
							
							The only remaining 'py.test' references are:
 * those referring to the 'py.test' executable
 * those in code explicitly testing py.test/pytest module compatibility
 * those in old CHANGES documentation
 * those in documentation generated based on external data
 * those in seemingly unfinished & unmaintained Japanese documentation
Minor stylistic changes and typo corrections made to documentation next to
several applied py.test --> pytest content changes. 
							
						 
						
							2014-01-18 12:31:33 +01:00  
				
					
						
							
							
								 
						
							
								8ac5af2896 
								
							 
						 
						
							
							
								
								fix flakes issues and make --flakes run part of tox runs  
							
							
							
						 
						
							2013-10-12 15:39:22 +02:00  
				
					
						
							
							
								 
						
							
								ca7c1f5d8e 
								
							 
						 
						
							
							
								
								merge pull request  #27 : correctly handle nose.SkipTest during collection.  Thanks  
							
							... 
							
							
							
							Antonio Cuni, Ronny Pfannschmidt.  I did a few tweaks to the test and the
activation (depending on if unittest is imported at all). 
							
						 
						
							2013-08-16 11:33:58 +02:00  
				
					
						
							
							
								 
						
							
								bb6f3ebd31 
								
							 
						 
						
							
							
								
								slightly improve -k help string  
							
							... 
							
							
							
							cosmetic change to test_nose.py 
							
						 
						
							2013-04-16 09:04:05 +02:00  
				
					
						
							
							
								 
						
							
								9c9679945e 
								
							 
						 
						
							
							
								
								fix Issue 265 - integrate nose setup/teardown with setupstate  
							
							... 
							
							
							
							as sideeffect teardown is only called if setup doesnt fail 
							
						 
						
							2013-03-25 10:52:02 +01:00  
				
					
						
							
							
								 
						
							
								37c47155e0 
								
							 
						 
						
							
							
								
								correctly handle nose.SkipTest during collection  
							
							
							
						 
						
							2013-03-14 16:10:33 +01:00