15
0
forked from pool/python-calmjs

Accepting request 1240606 from home:mcalabkova:branches:devel:languages:python

- Tweak support-python-313.patch to adapt to yet another change
  in argparse

OBS-URL: https://build.opensuse.org/request/show/1240606
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs?expand=0&rev=24
This commit is contained in:
2025-01-28 01:53:55 +00:00
committed by Git OBS Bridge
parent a588b26265
commit b496983b0f
2 changed files with 7 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ Index: calmjs-3.4.4/src/calmjs/tests/test_argparse.py
- self.assertIn("(choose from '1', '2', '3')", sys.stderr.getvalue())
+ msg = "(choose from '1', '2', '3')"
+ if sys.version_info[:2] == (3, 12):
+ if sys.version_info[:2] >= (3, 12):
+ msg = "(choose from 1, 2, 3)"
+ self.assertIn(msg, sys.stderr.getvalue())