In this post I will describe my approach to C unit testing using pytest. In particular, we get to see how to gracefully handle SIGSEGVs and prevent them from stopping the test runner abruptly. Furthermore, we shall try to write tests in a Pythonic way.
In this blog, we’re going to talk about what environment variables are, why they are important, and how they can be used. We’ll walk through various examples of Python environment variables to help you get started.