diff --git a/eris/gut.py b/eris/gut.py index 5ab259d..2b8c78f 100755 --- a/eris/gut.py +++ b/eris/gut.py @@ -37,12 +37,12 @@ def _indentation_of_line(line): def _is_start_line_of_signature(line): - return re.match("^\s*(async)?\s*def\s", line) is not None + return re.match(r"^\s*(async)?\s*def\s", line) is not None def _is_end_line_of_signature(line): - return (re.match(".*\):\s*\n$", line) is not None or - re.match(".*\):\s*#.*\n$", line) is not None) + return (re.match(r".*\):\s*\n$", line) is not None or + re.match(r".*\):\s*#.*\n$", line) is not None) def gut_module(module_contents): diff --git a/tests/__main___test.py b/tests/__main___test.py index bf3e81a..c994e79 100755 --- a/tests/__main___test.py +++ b/tests/__main___test.py @@ -238,7 +238,7 @@ class MainTestCase(unittest.TestCase): second_dir = os.path.join(temp_dir, "second") os.rename(first_dir, second_dir) test_run(second_dir, loop) - loop.close() + loop.stop() finally: shutil.rmtree(temp_dir) diff --git a/tests/tools_test.py b/tests/tools_test.py index bbc8f52..67fd5f0 100755 --- a/tests/tools_test.py +++ b/tests/tools_test.py @@ -124,7 +124,7 @@ class ToolsTestCase(unittest.TestCase): def test_python_modulefinder(self): self._test_tool(tools.python_modulefinder, self.HI_NORMAL) - def test_python_mccable(self): + def test_python_mccabe(self): self._test_tool(tools.python_mccabe, self.HI_OK) # FIX: Make the golden-file deterministic