Skip to content

Commit 8b73384

Browse files
committed
better comment
1 parent e968b30 commit 8b73384

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_profiling/test_sampling_profiler/test_binary_format.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,7 @@ def test_rejects_non_pathlike(self):
838838
_remote_debugging.BinaryReader(123)
839839

840840
def test_invalid_path_error_preserves_pathlib(self):
841-
"""OSError from a missing pathlib.Path round-trips the path object
842-
via PyErr_SetFromErrnoWithFilenameObject (Py_fopen contract)."""
841+
"""Missing path: OSError carries the original path object, not a string."""
843842
missing = pathlib.Path("/i/do/not/exist")
844843
with self.assertRaises(FileNotFoundError) as cm:
845844
_remote_debugging.BinaryReader(missing)

0 commit comments

Comments
 (0)