mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
added test for caught ImportError in compatibility inspection
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
import Bastion
|
||||
except ImportError:
|
||||
pass
|
||||
@@ -32,6 +32,11 @@ public class PyCompatibilityInspectionTest extends PyLightFixtureTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testImportErrorCaught() {
|
||||
setLanguageLevel(LanguageLevel.PYTHON27);
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testStarExpression() {
|
||||
setLanguageLevel(LanguageLevel.PYTHON30);
|
||||
doTest();
|
||||
|
||||
Reference in New Issue
Block a user