Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wicked:qubes-build
python-freezegun
py313-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File py313-support.patch of Package python-freezegun
From 1777174bb97c0b514033a09b820078b0d117f4a8 Mon Sep 17 00:00:00 2001 From: Bert Blommers <info@bertblommers.nl> Date: Fri, 28 Jun 2024 19:21:04 +0000 Subject: [PATCH] Admin: Support Python 3.13 --- .github/workflows/ci.yaml | 9 ++++++--- tests/test_datetimes.py | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) --- a/tests/test_datetimes.py +++ b/tests/test_datetimes.py @@ -534,17 +534,17 @@ def test_method_decorator_works_on_unittest(self) -> None: @freeze_time('2013-04-09', as_kwarg='frozen_time') def test_method_decorator_works_on_unittest_kwarg_frozen_time(self, frozen_time: Any) -> None: self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today()) + assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" @freeze_time('2013-04-09', as_kwarg='hello') def test_method_decorator_works_on_unittest_kwarg_hello(self, **kwargs: Any) -> None: self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) - self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today()) # type: ignore + assert kwargs.get("hello").time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" # type: ignore @freeze_time(lambda: datetime.date(year=2013, month=4, day=9), as_kwarg='frozen_time') def test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func(self, frozen_time: Any) -> None: self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today()) + assert frozen_time.time_to_freeze.today().strftime('%Y-%m-%d') == "2013-04-09" @freeze_time('2013-04-09')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor