We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 491c2c8 commit 78052bdCopy full SHA for 78052bd
pythonFiles/vscode_pytest/__init__.py
@@ -633,7 +633,13 @@ class EOTPayloadDict(TypedDict):
633
634
def get_node_path(node: Any) -> pathlib.Path:
635
"""A function that returns the path of a node given the switch to pathlib.Path."""
636
- return getattr(node, "path", pathlib.Path(node.fspath))
+ path = getattr(node, "path", None) or pathlib.Path(node.fspath)
637
+
638
+ if not path:
639
+ raise VSCodePytestError(
640
+ f"Unable to find path for node: {node}, node.path: {node.path}, node.fspath: {node.fspath}"
641
+ )
642
+ return path
643
644
645
__socket = None
0 commit comments