Skip to content
Prev Previous commit
Next Next commit
pep8
  • Loading branch information
sklam committed Jul 20, 2021
commit e3072870ea370b11b644920154b0a07ebaca3807
10 changes: 5 additions & 5 deletions numba/tests/test_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
from numba.core import ir, compiler
from numba.core import errors
from numba.core.compiler import (
CompilerBase,
CompilerBase,
ReconstructSSA,
)
from numba.core.compiler_machinery import (
FunctionPass,
FunctionPass,
PassManager,
register_pass,
)
from numba.core.untyped_passes import (
TranslateByteCode,
IRProcessing,
WithLifting,
)
from numba import njit


class TestIR(unittest.TestCase):

def test_IRScope(self):
Expand Down Expand Up @@ -515,7 +515,7 @@ def __init__(self, *args, **kwargs):
FunctionPass.__init__(self)

def run_pass(self, state):
# This is unreachable. SSA pass should have raised before this
# This is unreachable. SSA pass should have raised before this
# pass
raise AssertionError("unreachable")

Expand Down Expand Up @@ -553,7 +553,7 @@ def dummy(x):
str(raises.exception),
r"variable name '[a-z]' not in scope",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
r"variable name '[a-z]' not in scope",
r"variable '[a-z]' is not in scope",

)


if __name__ == '__main__':
unittest.main()