commit
						03b694a1d0
					
				|  | @ -3,6 +3,12 @@ NEXT | ||||||
| 
 | 
 | ||||||
| - fixed issue561: adapt autouse fixture example for python3. | - fixed issue561: adapt autouse fixture example for python3. | ||||||
| 
 | 
 | ||||||
|  | - Fix example in monkeypatch documentation, thanks t-8ch. | ||||||
|  | 
 | ||||||
|  | - Do not mark as universal wheel because Python 2.6 is different from | ||||||
|  |   other builds due to the extra argparse dependency.  Fixes issue566. | ||||||
|  |   Thanks sontek. | ||||||
|  | 
 | ||||||
| 2.6.1 | 2.6.1 | ||||||
| ----------------------------------- | ----------------------------------- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -48,7 +48,7 @@ requests in all your tests, you can do:: | ||||||
|     import pytest |     import pytest | ||||||
|     @pytest.fixture(autouse=True) |     @pytest.fixture(autouse=True) | ||||||
|     def no_requests(monkeypatch): |     def no_requests(monkeypatch): | ||||||
|         monkeypatch.delattr("requests.session.Session.request") |         monkeypatch.delattr("requests.sessions.Session.request") | ||||||
| 
 | 
 | ||||||
| This autouse fixture will be executed for each test function and it | This autouse fixture will be executed for each test function and it | ||||||
| will delete the method ``request.session.Session.request``  | will delete the method ``request.session.Session.request``  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue