Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
dist: xenial
language: python
python:
- "nightly"
- "3.7-dev"
- "3.6-dev"
- "3.8-dev"
- "3.7"
- "3.6"
- "3.5"
- "3.4"
- "3.3"
- "2.7"
matrix:
fast_finish: true
allow_failures:
- python: "nightly"
- python: "3.7-dev"
- python: "3.6-dev"
- python: "3.8-dev"
install:
- pip install --install-option='--no-cython-compile' Cython
- pip install -r dev_requirements.txt
Expand Down
4 changes: 4 additions & 0 deletions kernprof.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def wrapper(*args, **kwds):
self.enable_by_count()
try:
item = next(g)
except StopIteration:
return
finally:
self.disable_by_count()
input = (yield item)
Expand All @@ -102,6 +104,8 @@ def wrapper(*args, **kwds):
self.enable_by_count()
try:
item = g.send(input)
except StopIteration:
return
finally:
self.disable_by_count()
input = (yield item)
Expand Down
4 changes: 4 additions & 0 deletions line_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def wrapper(*args, **kwds):
self.enable_by_count()
try:
item = next(g)
except StopIteration:
return
finally:
self.disable_by_count()
input = (yield item)
Expand All @@ -100,6 +102,8 @@ def wrapper(*args, **kwds):
self.enable_by_count()
try:
item = g.send(input)
except StopIteration:
return
finally:
self.disable_by_count()
input = (yield item)
Expand Down