Skip to content

Commit

Permalink
Merge pull request #544 from iamdefinitelyahuman/fix-windows-debug-co…
Browse files Browse the repository at this point in the history
…nsole

Windows interactive debugging fixes
  • Loading branch information
iamdefinitelyahuman authored May 23, 2020
2 parents 900567a + 62fbbc0 commit 782c32e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions brownie/_cli/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ def __init__(self, project=None, extra_locals=None):
accept_binding = key_bindings.get_bindings_for_keys(("right",))[0]
key_bindings._bindings2.remove(accept_binding.handler)

# this is required because of a pytest conflict when using the debugging console
if sys.platform == "win32":
import colorama

colorama.init()

super().__init__(locals_dict)

# console dir method, for simplified and colorful output
Expand Down
2 changes: 1 addition & 1 deletion brownie/test/managers/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def pytest_exception_interact(self, report, call):

tw = TerminalWriter()
report.longrepr.toterminal(tw)
location = report.location[0]
location = self._path(report.location[0])

# find last traceback frame within the active test
traceback = next(
Expand Down

0 comments on commit 782c32e

Please sign in to comment.