Skip to content

Commit

Permalink
Testing: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Sep 20, 2018
1 parent 9e0bef7 commit 694da5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .circleci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export TRAVIS_OS_NAME="linux"
export CONDA_DEPENDENCIES_FLAGS="--quiet"
export CONDA_DEPENDENCIES="ipykernel cloudpickle nomkl numpy pandas scipy \
pexpect matplotlib qtconsole pytest pytest-cov"
export PIP_DEPENDENCIES_FLAGS="-q"
export PIP_DEPENDENCIES="codecov pytest-qt"

echo -e "PYTHON = $PYTHON_VERSION \n============"
Expand Down
12 changes: 9 additions & 3 deletions spyder_kernels/ipdb/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def notify_spyder(self, frame):
if not frame:
return

kernel = get_ipython().kernel
try:
kernel = get_ipython().kernel
except AttributeError:
return

# Get filename and line number of the current frame
fname = self.canonic(frame.f_code.co_filename)
Expand Down Expand Up @@ -153,8 +156,11 @@ def _cmdloop(self):
@monkeypatch_method(pdb.Pdb, 'Pdb')
def reset(self):
self._old_Pdb_reset()
kernel = get_ipython().kernel
kernel._register_pdb_session(self)
try:
kernel = get_ipython().kernel
kernel._register_pdb_session(self)
except AttributeError:
pass


#XXX: notify spyder on any pdb command (is that good or too lazy? i.e. is more
Expand Down

0 comments on commit 694da5b

Please sign in to comment.