tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 7b4f31cd7e83c6253160b7b0b036b05b70723c38
parent 4d21c828b11f186b5b9fe8171315f83cd51d1d06
Author: Julien Cristau <jcristau@mozilla.com>
Date:   Mon, 15 Dec 2025 10:08:07 +0000

Bug 2005058 - avoid reusing a cached task graph in test_query_paths_variants r=taskgraph-reviewers,Eijebong

Differential Revision: https://phabricator.services.mozilla.com/D275786

Diffstat:
Mtools/tryselect/test/test_fuzzy.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/tryselect/test/test_fuzzy.py b/tools/tryselect/test/test_fuzzy.py @@ -79,6 +79,11 @@ def test_query_paths_variants(monkeypatch, run_mach, capfd, variant): "2025-08-01", "%Y-%m-%d" ) monkeypatch.setattr(datetime, "datetime", datetime_mock) + # also patch the cache key since faking the date means we don't want to reuse another graph + monkeypatch.setattr( + "tryselect.tasks.cache_key", + lambda attr, *args: f"{attr}-test_query_paths_variants", + ) if variant: variant = "-%s" % variant