Add a SocketPath type for linux systems#10378
Conversation
CodSpeed Performance ReportMerging #10378 will not alter performanceComparing Summary
|
|
Test will need to be skipped on windows; as it doesn't have sockets to begin with. |
|
Looking good though, happy to support this once we get tests passing, etc :). |
|
ok for the issue with the Mac tests - pytest seems to be configured wrong, the temporary paths its generating with its fixture exceed the maximum length of a socket name on that platform. |
I'm ok only running the test on Linux. The goal isn't to test that creating sockets works, but to ensure that |
62fdf62 to
10d4ce8
Compare
10d4ce8 to
b874a82
Compare
|
Added condition to skip new test if not linux. |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
|
please review :) |
SocketPath typeSocketPath type for linux systems
|
@sydney-runkle when can i expect this change to be released? 😇 |
|
@theunkn0wn1, with our 2.10 release in late October! Feel free to install from main in the meantime :) |
Change Summary
The existing FilePath type does not accept sockets, as they fail the
Path.is_file(self)check.As such, I added a new
SocketPathtype and corresponding validator usingPath.is_socket(self).Related issue number
fix #10376
Checklist
Selected Reviewer: @sydney-runkle