Remove the news entry and the test for bpo-42383 - they will be submitted as a separate PR
This commit is contained in:
parent
fa849c32de
commit
0e87d7d86e
|
@ -1703,29 +1703,6 @@ def bœr():
|
|||
|
||||
self.assertEqual(stdout.split('\n')[2].rstrip('\r'), expected)
|
||||
|
||||
def test_issue42383(self):
|
||||
with os_helper.temp_cwd() as cwd:
|
||||
with open('foo.py', 'w') as f:
|
||||
s = textwrap.dedent("""
|
||||
print('The correct file was executed')
|
||||
|
||||
import os
|
||||
os.chdir("subdir")
|
||||
""")
|
||||
f.write(s)
|
||||
|
||||
subdir = os.path.join(cwd, 'subdir')
|
||||
os.mkdir(subdir)
|
||||
os.mkdir(os.path.join(subdir, 'subdir'))
|
||||
wrong_file = os.path.join(subdir, 'foo.py')
|
||||
|
||||
with open(wrong_file, 'w') as f:
|
||||
f.write('print("The wrong file was executed")')
|
||||
|
||||
stdout, stderr = self._run_pdb(['foo.py'], 'c\nc\nq')
|
||||
expected = '(Pdb) The correct file was executed'
|
||||
self.assertEqual(stdout.split('\n')[6].rstrip('\r'), expected)
|
||||
|
||||
|
||||
def load_tests(*args):
|
||||
from test import test_pdb
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
Fix pdb: previously pdb would fail to restart the debugging target if it was
|
||||
specified using a relative path and the current directory changed.
|
Loading…
Reference in New Issue