mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#11030: make --coverdir work for relative directories again.
This commit is contained in:
parent
6712a3e14f
commit
03504fc2fb
1 changed files with 3 additions and 1 deletions
|
@ -315,7 +315,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
elif o in ('-T', '--coverage'):
|
||||
trace = True
|
||||
elif o in ('-D', '--coverdir'):
|
||||
coverdir = os.path.join(os.getcwd(), a)
|
||||
# CWD is replaced with a temporary dir before calling main(), so we
|
||||
# need join it with the saved CWD so it goes where the user expects.
|
||||
coverdir = os.path.join(support.SAVEDCWD, a)
|
||||
elif o in ('-N', '--nocoverdir'):
|
||||
coverdir = None
|
||||
elif o in ('-R', '--huntrleaks'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue