Skip to content

Commit

Permalink
Fix Failing Unittests introduced in #650 (#651)
Browse files Browse the repository at this point in the history
* update new warning format with rank

Signed-off-by: Jason <[email protected]>

* add explicit rank marker

Signed-off-by: Jason <[email protected]>
  • Loading branch information
blisc authored May 21, 2020
1 parent 8a7c94f commit 4951396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nemo/utils/formatters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ class BaseNeMoFormatter(BaseFormatter):

class DebugNeMoFormatter(BaseFormatter):
DEFAULT_FORMAT = (
"%(color)s[NeMo %(levelname)1.1s %(asctime)s %(module)s:%(lineno)d %(rank)d]%(end_color)s %(message)s"
"%(color)s[NeMo %(levelname)1.1s %(asctime)s %(module)s:%(lineno)d rank:%(rank)d]%(end_color)s %(message)s"
)
2 changes: 1 addition & 1 deletion tests/unit/utils/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class DeprecatedTest(TestCase):
NEMO_ERR_MSG_FORMAT = re.compile(
r"\[NeMo W [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} deprecated:[0-9]*\] "
r"\[NeMo W [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} deprecated:[0-9]+( rank:[0-9]+)?\] "
)

@pytest.mark.unit
Expand Down

0 comments on commit 4951396

Please sign in to comment.