-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never purposefully fail to import crc32c
This behaviour was still lingering from the old 1.x series, so let's remove it. Instead of failing at import time, we can still choose to fail at runtime, which is a better design, since it makes importing the module much less cumbersome. And while it's a backwards-incompatible change, nobody will miss it (and if anyone does, they can easily replicate it on their end). The biggest repercussion this change had was in our own tests, which relied on the import working or not to skip tests conditionally. This logic has now been updated, and the supporting code has been redesigned as fixtures and markers, more in line with pytest's (and therefore, many users and readers) expectations. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
- Loading branch information
Showing
5 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pytest] | ||
markers = | ||
calculates_crc32c: Mark a test as needing crc32c working |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters