Skip to content

Commit

Permalink
Merge pull request #711 from vkarak/bugfix/py37-deprecation-warnings
Browse files Browse the repository at this point in the history
[bugfix] Fix deprecation warnings with Python 3.7
  • Loading branch information
vkarak committed Mar 12, 2019
2 parents a08800e + e54fec7 commit 7188703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions reframe/core/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

def _register_test(cls, args=None):
def _instantiate(cls, args):
if isinstance(args, collections.Sequence):
if isinstance(args, collections.abc.Sequence):
return cls(*args)
elif isinstance(args, collections.Mapping):
elif isinstance(args, collections.abc.Mapping):
return cls(**args)
elif args is None:
return cls()
Expand Down
2 changes: 1 addition & 1 deletion unittests/resources/checks/frontend_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self):
self.valid_systems = ['*']
self.valid_prog_environs = ['*']
self.perf_patterns = {
'perf': sn.extractsingle('perf: (\d+)', self.stdout, 1, int)
'perf': sn.extractsingle(r'perf: (\d+)', self.stdout, 1, int)
}
self.reference = {
'*': {
Expand Down

0 comments on commit 7188703

Please sign in to comment.