From 73a1e76b772e1bb6f00d173a92e2d9223b59876c Mon Sep 17 00:00:00 2001 From: Istvan Albert Date: Wed, 21 Feb 2024 12:54:03 -0500 Subject: [PATCH] release 1.4.2 tests pass with Python 3.13 --- doc/test_plac.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/test_plac.py b/doc/test_plac.py index 63756b2..277349b 100644 --- a/doc/test_plac.py +++ b/doc/test_plac.py @@ -26,7 +26,10 @@ # ####################### helpers ###################### # def fix_today(text): - return text.replace('YYYY-MM-DD', str(datetime.date.today())) + text = text.replace('YYYY-MM-DD', str(datetime.date.today())) + text = text.replace('2024-02-20', str(datetime.date.today())) + + return text def expect(errclass, func, *args, **kw): @@ -79,13 +82,13 @@ def check_help(name): if version >= (3, 13): hname = dirname + '/' + hname - print (hname) + #print (hname) expected = fix_today(open(hname + '.help').read()).strip() got = p.format_help().strip() - print (got) + #print (got) diff = list(difflib.unified_diff(expected.splitlines(), got.splitlines()))