Skip to content

Commit

Permalink
runtest: fix regexp escapes + deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed Apr 5, 2024
1 parent ad79306 commit 4ccf645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/testing/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import asyncio
import collections
import contextlib as clib
import curses
import datetime
from datetime import datetime, timezone
import fnmatch
import glob
import itertools
Expand Down Expand Up @@ -730,7 +730,7 @@ async def _run_all(options, allscripts, listener : Listener):
error = line[1:].decode('utf-8').strip()
if not error:
continue
if (m := re.search('^(\S+)\s+(.+)$', error)):
if (m := re.search(r'^(\S+)\s+(.+)$', error)):
code, error = m.group(1), m.group(2)
else:
code = None
Expand Down Expand Up @@ -825,7 +825,7 @@ async def _main():
mainconfig = Object()

mainconfig.hostname = socket.gethostname()
mainconfig.timestamp = datetime.datetime.utcnow()
mainconfig.timestamp = datetime.now(timezone.utc)

options = _options()

Expand Down

0 comments on commit 4ccf645

Please sign in to comment.