2b9ca34280 
								
							 
						 
						
							
							
								
								Unroll calls to any  #5062  ( #5103 )  
							
							... 
							
							
							
							Unroll calls to any #5062  
							
						 
						
							2019-05-27 20:17:44 -03:00  
				
					
						
							
							
								 
						
							
								852fb6a4ae 
								
							 
						 
						
							
							
								
								Change basic test case to be consistent with existing assertion rewriting  
							
							... 
							
							
							
							The code
```
x = 0
assert x == 1
```
will give the failure message 0 == 1, so it shouldn't be different as
part of an unroll 
							
						 
						
							2019-05-25 19:34:08 +03:00  
				
					
						
							
							
								 
						
							
								437d6452c1 
								
							 
						 
						
							
							
								
								Expand list comprehensions as well  
							
							
							
						 
						
							2019-05-25 19:34:08 +03:00  
				
					
						
							
							
								 
						
							
								a0dbf2ab99 
								
							 
						 
						
							
							
								
								Adding test cases for unrolling an iterable  #5062  
							
							
							
						 
						
							2019-05-25 19:34:08 +03:00  
				
					
						
							
							
								 
						
							
								6b5152ae13 
								
							 
						 
						
							
							
								
								Sanity tests for loop unrolling  
							
							
							
						 
						
							2019-05-25 19:34:08 +03:00  
				
					
						
							
							
								 
						
							
								1d466d0aa7 
								
							 
						 
						
							
							
								
								Use exec directly ( #5224 )  
							
							... 
							
							
							
							Use exec directly 
							
						 
						
							2019-05-07 10:02:12 -03:00  
				
					
						
							
							
								 
						
							
								d1a48ad68f 
								
							 
						 
						
							
							
								
								Use exec directly  
							
							
							
						 
						
							2019-05-06 23:07:39 -07:00  
				
					
						
							
							
								 
						
							
								77526f412c 
								
							 
						 
						
							
							
								
								Skip test_source_mtime_long_long on 32bit and lower platforms  
							
							
							
						 
						
							2019-04-04 13:14:46 +02:00  
				
					
						
							
							
								 
						
							
								6eff3069da 
								
							 
						 
						
							
							
								
								Merge pull request  #4851  from blueyed/addopts-vv  
							
							... 
							
							
							
							ci: PYTEST_ADDOPTS=-vv 
							
						 
						
							2019-03-25 23:41:33 +01:00  
				
					
						
							
							
								 
						
							
								58a14b6b99 
								
							 
						 
						
							
							
								
								Merge pull request  #4986  from blueyed/fnmatch_lines-list  
							
							... 
							
							
							
							tests: fnmatch_lines: use list 
							
						 
						
							2019-03-25 23:31:04 +01: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  
				
					
						
							
							
								 
						
							
								05d55b86df 
								
							 
						 
						
							
							
								
								tests: minor sys.path cleanup  
							
							
							
						 
						
							2019-03-22 16:20:55 +01:00  
				
					
						
							
							
								 
						
							
								2e7d6a6202 
								
							 
						 
						
							
							
								
								Fix test_assertrewrite in verbose mode  
							
							... 
							
							
							
							Fixes https://github.com/pytest-dev/pytest/issues/4879 . 
							
						 
						
							2019-03-22 13:00:35 +01:00  
				
					
						
							
							
								 
						
							
								bd70f5c148 
								
							 
						 
						
							
							
								
								Add test for mtime issue in  #4903  
							
							
							
						 
						
							2019-03-14 10:16:08 -03:00  
				
					
						
							
							
								 
						
							
								8481e438bd 
								
							 
						 
						
							
							
								
								ci: revisit coverage reporting  
							
							... 
							
							
							
							This brings coverage back that got missing with 9dcd6f2#4839  / #4846 . 
							
						 
						
							2019-03-05 13:34:46 +01:00  
				
					
						
							
							
								 
						
							
								6fb7269979 
								
							 
						 
						
							
							
								
								terminal: write_fspath_result: work around py bug  
							
							
							
						 
						
							2019-02-15 17:47:00 +01:00  
				
					
						
							
							
								 
						
							
								315374008b 
								
							 
						 
						
							
							
								
								Remove workaround for docstrings for py38+  
							
							
							
						 
						
							2019-02-05 12:48:18 -08:00  
				
					
						
							
							
								 
						
							
								acb3e8e8a7 
								
							 
						 
						
							
							
								
								Test rewriting assertion when __name__ fails  
							
							... 
							
							
							
							Pytest rewrites assertions so that the items on each
side of a comoparison will have easier-to-read names
in case of an assertion error.
Before doing this, it checks to make sure the object
doesn't have a __name__ attribute; however, it uses
`hasattr` so if the objects __getattr__ is broken then
the test failure message will be the stack trace
for this failure instead of a rewritten assertion. 
							
						 
						
							2019-01-10 20:45:15 -05:00  
				
					
						
							
							
								 
						
							
								fd48cd57f9 
								
							 
						 
						
							
							
								
								Remove config.warn, Node.warn; pytest_logwarning issues a warning when implemented  
							
							... 
							
							
							
							Fix  #3078  
						
							2018-12-14 12:50:18 -02:00  
				
					
						
							
							
								 
						
							
								690a63b921 
								
							 
						 
						
							
							
								
								Fix assertion rewriting involving Starred + side-effects  
							
							
							
						 
						
							2018-11-17 10:42:51 -08:00  
				
					
						
							
							
								 
						
							
								2368fbb63c 
								
							 
						 
						
							
							
								
								Apply reorder-python-imports to all files  
							
							
							
						 
						
							2018-10-25 00:01:29 -07:00  
				
					
						
							
							
								 
						
							
								c61ff31ffa 
								
							 
						 
						
							
							
								
								Fix   #3539 : reload module with assertion rewrite import hook  
							
							
							
						 
						
							2018-09-23 13:05:55 +02:00  
				
					
						
							
							
								 
						
							
								7122fa5613 
								
							 
						 
						
							
							
								
								Fix UnicodeDecodeError in assertion with mixed non-ascii bytes repr + text  
							
							
							
						 
						
							2018-09-19 20:24:00 -07:00  
				
					
						
							
							
								 
						
							
								1df6d28080 
								
							 
						 
						
							
							
								
								Fix assertion rewriter crash if cwd changes mid-testing  
							
							... 
							
							
							
							Unfortunately we need to get a `py.path.local` object to perform the fnmatch
operation, it is different from the standard `fnmatch` module because it
implements its own custom logic. So we need to use `py.path` to perform
the fnmatch for backward compatibility reasons.
Ideally we should be able to use a "pure path" in `pathlib` terms (a path
not bound to the file system), but we don't have those in pylib.
Fix  #3973  
							
						 
						
							2018-09-17 20:04:44 -03:00  
				
					
						
							
							
								 
						
							
								69b34f7658 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into release-3.8.0  
							
							
							
						 
						
							2018-09-05 18:02:02 -03:00  
				
					
						
							
							
								 
						
							
								56d414177a 
								
							 
						 
						
							
							
								
								Remove nodeid from messages for warnings generated by standard warnings  
							
							... 
							
							
							
							Standard warnings already contain the proper location, so we don't need
to also print the node id 
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								19a01c9849 
								
							 
						 
						
							
							
								
								Make PytestWarning and RemovedInPytest4Warning part of the public API  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								78ac7d99f5 
								
							 
						 
						
							
							
								
								Deprecate Config.warn and Node.warn, replaced by standard warnings  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								4675912d89 
								
							 
						 
						
							
							
								
								Add tests for early rewrite bailout code and handle patterns with subdirectories  
							
							
							
						 
						
							2018-09-01 10:59:21 -03:00  
				
					
						
							
							
								 
						
							
								82a7ca9615 
								
							 
						 
						
							
							
								
								Avoid possible infinite recursion when writing pyc files in assert rewrite  
							
							... 
							
							
							
							What happens is that atomic_write on Python 2.7 on Windows will try
to convert the paths to unicode, but this triggers the import of
the encoding module for the file system codec, which in turn triggers
the rewrite, which in turn again tries to import the module, and so on.
This short-circuits the cases where we try to import another file when
writing a pyc file; I don't expect this to affect anything because
the only modules that could be affected are those imported by
atomic_writes.
Fix  #3506  
							
						 
						
							2018-08-27 21:29:45 -03:00  
				
					
						
							
							
								 
						
							
								f2e35c8c4f 
								
							 
						 
						
							
							
								
								Merge pull request  #3859  from asottile/pyupgrade_1_4  
							
							... 
							
							
							
							Some pyupgrade 1.4.x changes 
							
						 
						
							2018-08-23 18:32:53 -07:00  
				
					
						
							
							
								 
						
							
								85482d575e 
								
							 
						 
						
							
							
								
								Replace Source with dedent where possible  
							
							
							
						 
						
							2018-08-23 09:06:17 -07:00  
				
					
						
							
							
								 
						
							
								c2cd337886 
								
							 
						 
						
							
							
								
								py.builtin.exec_ => six.exec_  
							
							
							
						 
						
							2018-08-22 23:00:06 -07:00  
				
					
						
							
							
								 
						
							
								0fc4a806e5 
								
							 
						 
						
							
							
								
								py.builtins._totext -> string literals or six.text_type  
							
							
							
						 
						
							2018-08-22 23:00:04 -07:00  
				
					
						
							
							
								 
						
							
								8bb8b91357 
								
							 
						 
						
							
							
								
								pyupgrade 1.4: tests  
							
							
							
						 
						
							2018-08-22 18:47:21 -07:00  
				
					
						
							
							
								 
						
							
								452e5c1cf0 
								
							 
						 
						
							
							
								
								Fix `TypeError` when the assertion message is `bytes` in python 3.  
							
							
							
						 
						
							2018-08-01 15:09:25 -07:00  
				
					
						
							
							
								 
						
							
								61301d934e 
								
							 
						 
						
							
							
								
								Remove some extraneous `# noqa` comments  
							
							... 
							
							
							
							This was partially automated with https://github.com/asottile/yesqa 
_with a few caveats_:
- it was run under python2 (chosen arbitrarily, when run under python3 other
  things were changed)
- I used `git checkout -p` to revert the removal of `noqa` comments from
  `cmp()` lines. 
							
						 
						
							2018-07-08 17:05:52 -07:00  
				
					
						
							
							
								 
						
							
								4ae93a7a07 
								
							 
						 
						
							
							
								
								Remove obsolete __future__ imports  
							
							
							
						 
						
							2018-07-08 08:37:02 -07:00  
				
					
						
							
							
								 
						
							
								cbaa7dd56a 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks except pyupgrade  
							
							
							
						 
						
							2018-06-26 06:35:27 -07:00  
				
					
						
							
							
								 
						
							
								39ebdab1bc 
								
							 
						 
						
							
							
								
								DRY in TestAssertionRewrite  
							
							
							
						 
						
							2018-06-04 14:03:13 +02:00  
				
					
						
							
							
								 
						
							
								9a6fa33c69 
								
							 
						 
						
							
							
								
								Module docstrings in 3.7 are not part of Module node anymore  
							
							... 
							
							
							
							Fixes https://github.com/pytest-dev/pytest/issues/3530  
							
						 
						
							2018-06-04 13:58:35 +02:00  
				
					
						
							
							
								 
						
							
								703e4b11ba 
								
							 
						 
						
							
							
								
								run black  
							
							
							
						 
						
							2018-05-23 16:48:46 +02:00  
				
					
						
							
							
								 
						
							
								aa95a425d7 
								
							 
						 
						
							
							
								
								Attempt to solve race-condition which corrupts .pyc files on Windows  
							
							... 
							
							
							
							This uses of the `atomicwrites` library.
This is very hard to create a reliable test for.
Fix  #3008  
							
						 
						
							2018-04-12 08:19:28 -03:00  
				
					
						
							
							
								 
						
							
								bd1d17e8de 
								
							 
						 
						
							
							
								
								Replace py.std with stdlib imports  
							
							
							
						 
						
							2018-01-09 12:44:10 -08:00  
				
					
						
							
							
								 
						
							
								c8e7d1ae34 
								
							 
						 
						
							
							
								
								Respect PYTEST_DONT_REWRITE for plugins too.  
							
							
							
						 
						
							2017-12-12 17:43:17 -08:00  
				
					
						
							
							
								 
						
							
								983a09a2d4 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2017-11-10 18:33:02 -02:00  
				
					
						
							
							
								 
						
							
								03829fde8a 
								
							 
						 
						
							
							
								
								Fix linting E741: ambiguous variable name  
							
							
							
						 
						
							2017-11-04 13:59:10 -02:00  
				
					
						
							
							
								 
						
							
								f3a119c06a 
								
							 
						 
						
							
							
								
								Merge upstream/master into features  
							
							
							
						 
						
							2017-11-03 16:37:18 -02:00  
				
					
						
							
							
								 
						
							
								27cea340f3 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							
							
						 
						
							2017-10-26 21:55:28 -02:00  
				
					
						
							
							
								 
						
							
								27bb2eceb4 
								
							 
						 
						
							
							
								
								Add comment about why we remove docstrings on test_assertrewrite  
							
							... 
							
							
							
							As explained in pytest-dev/pytest#2870  
							
						 
						
							2017-10-26 20:15:05 -02:00