mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-20769 Fixed: Support PEP 519: File system path protocol
Add __fspath__ to PY36_BUILTIN_METHODS
This commit is contained in:
committed by
Semyon Proshev
parent
13cc11735e
commit
e67d313bf1
@@ -1037,6 +1037,17 @@ public class PythonCompletionTest extends PyTestCase {
|
||||
});
|
||||
}
|
||||
|
||||
// PY-20769
|
||||
public void testFsPathBuiltinMethod() {
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON36,
|
||||
() -> {
|
||||
doTestByText("class Cl(object):\n" +
|
||||
" def __fspa<caret>");
|
||||
myFixture.checkResult("class Cl(object):\n" +
|
||||
" def __fspath__(self):");
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return super.getTestDataPath() + "/completion";
|
||||
|
||||
Reference in New Issue
Block a user