I noticed that the test suite is currently attempting to write to the output file even before it's created. It happens from the function load_conf_file, which internally has a call to print, which in turn attempts to write to the output file with write_to_output_file. But at that point it doesn't yet exist, because the call to open_output_file that creates it only happens after load_conf_file has finished. So basically, it just needs to swap the order of those two calls
I noticed that the test suite is currently attempting to write to the output file even before it's created. It happens from the function
load_conf_file
, which internally has a call toprint
, which in turn attempts to write to the output file withwrite_to_output_file
. But at that point it doesn't yet exist, because the call toopen_output_file
that creates it only happens afterload_conf_file
has finished. So basically, it just needs to swap the order of those two calls