Skip to content

Commit

Permalink
Fix B910 errors from flake8-bugbear
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo authored and mr-c committed Sep 6, 2024
1 parent 291f0d6 commit 59c4cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cwltest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import argparse
import os
import sys
from collections import defaultdict
from collections import Counter, defaultdict
from concurrent.futures import ThreadPoolExecutor
from typing import Dict, List, Optional, Set, cast

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

ntotal: Dict[str, int] = defaultdict(int)
ntotal: Dict[str, int] = Counter()
npassed: Dict[str, List[CWLTestReport]] = defaultdict(list)

if args.only_tools:
Expand Down
4 changes: 2 additions & 2 deletions cwltest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys
import tempfile
import time
from collections import defaultdict
from collections import Counter, defaultdict
from typing import (
Any,
Dict,
Expand Down Expand Up @@ -314,7 +314,7 @@ def parse_results(
passed = 0
failures = 0
unsupported = 0
ntotal: Dict[str, int] = defaultdict(int)
ntotal: Dict[str, int] = Counter()
nfailures: Dict[str, List[CWLTestReport]] = defaultdict(list)
nunsupported: Dict[str, List[CWLTestReport]] = defaultdict(list)
npassed: Dict[str, List[CWLTestReport]] = defaultdict(list)
Expand Down

0 comments on commit 59c4cc4

Please sign in to comment.