Skip to content

Commit

Permalink
Test improvement: parallel tests automatically add shared cache decor…
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss authored Nov 15, 2023
1 parent 5c46cc2 commit a80b86b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ def __call__(self, config, config_id):
class TestApi:

def _run_picire(self, interesting, config, expect, granularity, dd, split, subset_first, subset_iterator, complement_iterator, cache):
if dd != picire.DD:
cache = picire.shared_cache_decorator(cache)

logging.basicConfig(format='%(message)s')
logging.getLogger('picire').setLevel(logging.DEBUG)

Expand Down Expand Up @@ -103,4 +100,4 @@ def test_dd(self, interesting, config, expect, granularity, split, subset_first,
(picire.splitter.BalancedSplit, False, picire.iterator.skip, picire.iterator.backward, picire.cache.NoCache),
])
def test_parallel(self, interesting, config, expect, granularity, split, subset_first, subset_iterator, complement_iterator, cache):
self._run_picire(interesting, config, expect, granularity, picire.ParallelDD, split, subset_first, subset_iterator, complement_iterator, cache)
self._run_picire(interesting, config, expect, granularity, picire.ParallelDD, split, subset_first, subset_iterator, complement_iterator, picire.shared_cache_decorator(cache))

0 comments on commit a80b86b

Please sign in to comment.