• Kirill Smelkov's avatar
    promis/plugin/check_free_disk_space: test: Fix unclosed file ResourceWarning · daf7820f
    Kirill Smelkov authored
    folder_disk_test.sql was opened to be read but was not closed:
    
        slapos.toolbox$ python -m unittest discover -v   -s slapos/test/promise/plugin/ -t . -k test_display_prediction
        test_display_prediction (slapos.test.promise.plugin.test_check_free_disk_space.testcheckfreediskspace.test_display_prediction) ...
        /usr/lib/python3.11/unittest/case.py:576: resourcewarning: unclosed file <_io.textiowrapper name='/home/kirr/src/wendelin/slapos/slapos.toolbox/slapos/test/promise/data/disktest.sql' mode='r' encoding='utf-8'>
          self.setup()
    
    /cc @Just1, @lu.xu, @jhuge, @tomo
    /reviewed-on !124
    daf7820f
test_monitor_partition_space.py 5.75 KB