From: Pieter Lenaerts <plenae@disroot.org>
Date: Mon, 11 May 2026 19:55:36 +0200
Subject: Future proof BucketPluginTest.test_year_single_year_last_folder

This test assumes 2025 is in the future. It used to be.

This is a backport from Stefano's patch in tag debian/2.2.0-2

Forwarded: not-needed
Origin: https://salsa.debian.org/python-team/packages/beets/-/blob/debian/2.2.0-2/debian/patches/2025-future?ref_type=tags
---
 test/test_bucket.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/test_bucket.py b/test/test_bucket.py
index 46091e2..a2db41b 100644
--- a/test/test_bucket.py
+++ b/test/test_bucket.py
@@ -14,6 +14,7 @@
 
 """Tests for the 'bucket' plugin."""
 
+from datetime import datetime
 
 import unittest
 from beetsplug import bucket
@@ -50,7 +51,9 @@ class BucketPluginTest(unittest.TestCase, TestHelper):
         year."""
         self._setup_config(bucket_year=['1950', '1970'])
         self.assertEqual(self.plugin._tmpl_bucket('2014'), '1970')
-        self.assertEqual(self.plugin._tmpl_bucket('2025'), '2025')
+        next_year = datetime.now().year + 1
+        self.assertEqual(self.plugin._tmpl_bucket(str(next_year)),
+                         str(next_year))
 
     def test_year_two_years(self):
         """Buckets can be named with the 'from-to' syntax."""
