Skip to content

Commit 59c4cc4

Browse files
nsoranzomr-c
authored andcommitted
Fix B910 errors from flake8-bugbear
1 parent 291f0d6 commit 59c4cc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cwltest/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import argparse
55
import os
66
import sys
7-
from collections import defaultdict
7+
from collections import Counter, defaultdict
88
from concurrent.futures import ThreadPoolExecutor
99
from typing import Dict, List, Optional, Set, cast
1010

@@ -116,7 +116,7 @@ def main() -> int:
116116
suite_name, _ = os.path.splitext(os.path.basename(args.test))
117117
report: Optional[junit_xml.TestSuite] = junit_xml.TestSuite(suite_name, [])
118118

119-
ntotal: Dict[str, int] = defaultdict(int)
119+
ntotal: Dict[str, int] = Counter()
120120
npassed: Dict[str, List[CWLTestReport]] = defaultdict(list)
121121

122122
if args.only_tools:

cwltest/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88
import tempfile
99
import time
10-
from collections import defaultdict
10+
from collections import Counter, defaultdict
1111
from typing import (
1212
Any,
1313
Dict,
@@ -314,7 +314,7 @@ def parse_results(
314314
passed = 0
315315
failures = 0
316316
unsupported = 0
317-
ntotal: Dict[str, int] = defaultdict(int)
317+
ntotal: Dict[str, int] = Counter()
318318
nfailures: Dict[str, List[CWLTestReport]] = defaultdict(list)
319319
nunsupported: Dict[str, List[CWLTestReport]] = defaultdict(list)
320320
npassed: Dict[str, List[CWLTestReport]] = defaultdict(list)

0 commit comments

Comments
 (0)