浏览代码

gunittest: init super() to initialise 'errors' attribute (#1685)

Fix error with message:
"AttributeError: 'GrassTestLoader' object has no attribute 'errors'"
nilason 3 年之前
父节点
当前提交
602a63020f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      python/grass/gunittest/loader.py

+ 1 - 0
python/grass/gunittest/loader.py

@@ -209,6 +209,7 @@ class GrassTestLoader(unittest.TestLoader):
     universal_tests_value = "universal"
 
     def __init__(self, grass_location):
+        super().__init__()
         self.grass_location = grass_location
 
     # TODO: what is the purpose of top_level_dir, can it be useful?