[7.0.x] Rename ``pythonpath`` plugin to ``python_path``
This commit is contained in:
		
							parent
							
								
									a24c78b7af
								
							
						
					
					
						commit
						453bcb1b83
					
				| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					The ``pythonpath`` plugin was renamed to ``python_path``. This avoids a conflict with the ``pytest-pythonpath`` plugin.
 | 
				
			||||||
| 
						 | 
					@ -255,7 +255,7 @@ default_plugins = essential_plugins + (
 | 
				
			||||||
    "warnings",
 | 
					    "warnings",
 | 
				
			||||||
    "logging",
 | 
					    "logging",
 | 
				
			||||||
    "reports",
 | 
					    "reports",
 | 
				
			||||||
    "pythonpath",
 | 
					    "python_path",
 | 
				
			||||||
    *(["unraisableexception", "threadexception"] if sys.version_info >= (3, 8) else []),
 | 
					    *(["unraisableexception", "threadexception"] if sys.version_info >= (3, 8) else []),
 | 
				
			||||||
    "faulthandler",
 | 
					    "faulthandler",
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1275,7 +1275,7 @@ def test_load_initial_conftest_last_ordering(_config_for_test):
 | 
				
			||||||
        ("_pytest.config", "nonwrapper"),
 | 
					        ("_pytest.config", "nonwrapper"),
 | 
				
			||||||
        (m.__module__, "nonwrapper"),
 | 
					        (m.__module__, "nonwrapper"),
 | 
				
			||||||
        ("_pytest.legacypath", "nonwrapper"),
 | 
					        ("_pytest.legacypath", "nonwrapper"),
 | 
				
			||||||
        ("_pytest.pythonpath", "nonwrapper"),
 | 
					        ("_pytest.python_path", "nonwrapper"),
 | 
				
			||||||
        ("_pytest.capture", "wrapper"),
 | 
					        ("_pytest.capture", "wrapper"),
 | 
				
			||||||
        ("_pytest.warnings", "wrapper"),
 | 
					        ("_pytest.warnings", "wrapper"),
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -81,7 +81,7 @@ def test_no_ini(pytester: Pytester, file_structure) -> None:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test_clean_up(pytester: Pytester) -> None:
 | 
					def test_clean_up(pytester: Pytester) -> None:
 | 
				
			||||||
    """Test that the pythonpath plugin cleans up after itself."""
 | 
					    """Test that the plugin cleans up after itself."""
 | 
				
			||||||
    # This is tough to test behaviorly because the cleanup really runs last.
 | 
					    # This is tough to test behaviorly because the cleanup really runs last.
 | 
				
			||||||
    # So the test make several implementation assumptions:
 | 
					    # So the test make several implementation assumptions:
 | 
				
			||||||
    # - Cleanup is done in pytest_unconfigure().
 | 
					    # - Cleanup is done in pytest_unconfigure().
 | 
				
			||||||
		Loading…
	
		Reference in New Issue