Add notNull assertion for testRelativeFromImportWhitespacesAfterDot

GitOrigin-RevId: 2ebd2e2d0c79b418596968195610037a4c1d8b71
This commit is contained in:
Stanislav Utikeev
2019-11-20 15:46:49 +03:00
committed by intellij-monorepo-bot
parent 1d9a4e5d49
commit a93839fed6

View File

@@ -889,7 +889,9 @@ public abstract class PythonCommonCompletionTest extends PythonCommonTestCase {
myFixture.copyDirectoryToProject(getTestName(true), "");
myFixture.configureByFile("pkg/subpkg1/a.py");
myFixture.completeBasic();
assertSameElements(myFixture.getLookupElementStrings(), "import", "subpkg1", "subpkg2", "m");
final List<String> variants = myFixture.getLookupElementStrings();
assertNotNull(variants);
assertSameElements(variants, "import", "subpkg1", "subpkg2", "m");
}
// PY-15197