Skip to content

Commit 7bac7fd

Browse files
authored
Drop Python 2 URLs (#307)
1 parent 2b7dc71 commit 7bac7fd

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/client/debugger/Main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,8 @@ export class PythonDebugger extends DebugSession {
692692
}
693693

694694
}
695-
// For some reason on python 3.5 iterating through generators throws the StopIteration, GeneratorExit Exceptions
696-
// https://docs.python.org/2/library/exceptions.html#exceptions.StandardError
697-
// Lets ignore them
695+
// Ignore StopIteration and GeneratorExit as they are used for
696+
// control flow and not error conditions.
698697
if (!exToIgnore.has('StopIteration')) {
699698
exToIgnore.set('StopIteration', enum_EXCEPTION_STATE.BREAK_MODE_NEVER);
700699
}

src/client/unittests/configuration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,20 @@ async function selectTestRunner(placeHolderMessage: string): Promise<UnitTestPro
133133
label: 'unittest',
134134
product: Product.unittest,
135135
description: 'Standard Python test framework',
136-
detail: 'https://docs.python.org/2/library/unittest.html'
136+
detail: 'https://docs.python.org/3/library/unittest.html'
137137
},
138138
{
139139
label: 'pytest',
140140
product: Product.pytest,
141141
description: 'Can run unittest (including trial) and nose test suites out of the box',
142142
// tslint:disable-next-line:no-http-string
143-
detail: 'http://docs.pytest.org/en/latest/'
143+
detail: 'http://docs.pytest.org/'
144144
},
145145
{
146146
label: 'nose',
147147
product: Product.nosetest,
148148
description: 'nose framework',
149-
detail: 'https://docs.python.org/2/library/unittest.html'
149+
detail: 'https://nose.readthedocs.io/'
150150
}];
151151
const options = {
152152
matchOnDescription: true,

0 commit comments

Comments
 (0)