Skip to content

Commit

Permalink
release 1.4.2 tests pass with Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ialbert committed Feb 22, 2024
1 parent 03b7fd2 commit 73a1e76
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/test_plac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()))
Expand Down

0 comments on commit 73a1e76

Please sign in to comment.