python-pytz/fix-tests.patch
Markéta Machová 801a958058 - Update to 2024.02:
* Bump GitHub Actions
  * Run other jobs if one fails
  * Add support for Python 3.13
  * Stop testing unavailable and EOL Python 3.5
  * Squashed 'tz/' changes from 380c07cef..923e54bae
  * Bump version numbers to 2024.2 / 2024b

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=129
2024-11-05 11:55:53 +00:00

21 lines
730 B
Diff

Index: pytz-2022.2.1/pytz/tests/test_tzinfo.py
===================================================================
--- pytz-2022.2.1.orig/pytz/tests/test_tzinfo.py
+++ pytz-2022.2.1/pytz/tests/test_tzinfo.py
@@ -685,15 +685,6 @@ class LocalTestCase(unittest.TestCase):
'2004-04-04 01:50:00 EST-0500'
)
- def no_testCreateLocaltime(self):
- # It would be nice if this worked, but it doesn't.
- tz = pytz.timezone('Europe/Amsterdam')
- dt = datetime(2004, 10, 31, 2, 0, 0, tzinfo=tz)
- self.assertEqual(
- dt.strftime(fmt),
- '2004-10-31 02:00:00 CET+0100'
- )
-
class CommonTimezonesTestCase(unittest.TestCase):
def test_bratislava(self):