From: Pieter Lenaerts <plenae@disroot.org>
Date: Mon, 11 May 2026 20:32:39 +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 61f6cfe..3a265ab 100644
--- a/test/test_bucket.py
+++ b/test/test_bucket.py
@@ -23,6 +23,7 @@ from beets import config, ui
 
 from test.helper import TestHelper
 
+from datetime import datetime
 
 class BucketPluginTest(unittest.TestCase, TestHelper):
     def setUp(self):
@@ -52,7 +53,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."""
