Fix mention using --rootdir mention inside pytest.ini (not supported) (#6825)
Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
		
							parent
							
								
									10bfcf5904
								
							
						
					
					
						commit
						ceac6736d7
					
				| 
						 | 
					@ -39,8 +39,9 @@ Here's a summary what ``pytest`` uses ``rootdir`` for:
 | 
				
			||||||
influence how modules are imported. See :ref:`pythonpath` for more details.
 | 
					influence how modules are imported. See :ref:`pythonpath` for more details.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The ``--rootdir=path`` command-line option can be used to force a specific directory.
 | 
					The ``--rootdir=path`` command-line option can be used to force a specific directory.
 | 
				
			||||||
The directory passed may contain environment variables when it is used in conjunction
 | 
					Note that contrary to other command-line options, ``--rootdir`` cannot be used with
 | 
				
			||||||
with ``addopts`` in a ``pytest.ini`` file.
 | 
					:confval:`addopts` inside ``pytest.ini`` because the ``rootdir`` is used to *find* ``pytest.ini``
 | 
				
			||||||
 | 
					already.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Finding the ``rootdir``
 | 
					Finding the ``rootdir``
 | 
				
			||||||
~~~~~~~~~~~~~~~~~~~~~~~
 | 
					~~~~~~~~~~~~~~~~~~~~~~~
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue