asottile: I guess I'll fix tbutils to work under python3?  Kinda unfortunate for the build to fail because I added tests :( (when it wouldn't have worked before then!)
diff --git a/.travis.yml b/.travis.yml
index 9f97722..0df3b47 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,4 +6,4 @@ python:
   - "pypy"
 
 install: "pip install -r requirements-test.txt"
-script: "py.test --doctest-modules boltons"
+script: "py.test --doctest-modules boltons tests"
diff --git a/boltons/tbutils.py b/boltons/tbutils.py
index 2ff476d..6f402e9 100644
--- a/boltons/tbutils.py
+++ b/boltons/tbutils.py
@@ -27,6 +27,12 @@ import sys
 import linecache
 
 
+if str is bytes:  # py2
+    text = unicode
+else:  # py3
+    text = str
+
+
 # TODO: chaining primitives?  what are real use cases where these help?
 
 # TODO: print_* for backwards compatability
@@ -691,7 +697,7 @@ class ParsedException(object):
         Args:
             tb_str (str): The traceback text (:class:`unicode` or UTF-8 bytes)
         """
-        if not isinstance(tb_str, unicode):
+        if not isinstance(tb_str, text):
             tb_str = tb_str.decode('utf-8')
         tb_lines = tb_str.lstrip().splitlines()
 
@@ -717,21 +723,35 @@ class ParsedException(object):
             raise ValueError('unrecognized traceback string format')
 
         frames = []
-        for pair_idx in range(start_line, len(tb_lines), 2):
-            frame_line = tb_lines[pair_idx].strip()
+        line_no = start_line
+        while True:
+            frame_line = tb_lines[line_no].strip()
             frame_match = frame_re.match(frame_line)
             if frame_match:
                 frame_dict = frame_match.groupdict()
+                next_line = tb_lines[line_no + 1]
+                next_line_stripped = next_line.strip()
+                if (
+                        frame_re.match(next_line_stripped) or
+                        # The exception message will not be indented
+                        # This check is to avoid overrunning on eval-like
+                        # tracebacks where the last frame doesn't have source
+                        # code in the traceback
+                        not next_line.startswith(' ')
+                ):
+                    frame_dict['source_line'] = ''
+                else:
+                    frame_dict['source_line'] = next_line_stripped
+                    line_no += 1
             else:
                 break
-            frame_dict['source_line'] = tb_lines[pair_idx + 1].strip()
+            line_no += 1
             frames.append(frame_dict)
 
-        exc_line_offset = start_line + len(frames) * 2
         try:
-            exc_line = tb_lines[exc_line_offset]
+            exc_line = tb_lines[line_no]
             exc_type, _, exc_msg = exc_line.partition(':')
-        except:
+        except Exception:
             exc_type, exc_msg = '', ''
 
         return cls(exc_type, exc_msg, frames)
diff --git a/tox.ini b/tox.ini
index 928a1dc..e99092f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,4 +2,4 @@
 envlist = py27,py34,pypy
 [testenv]
 deps = -rrequirements-test.txt
-commands = py.test --doctest-modules boltons
+commands = py.test --doctest-modules boltons tests

ParsedException.from_string produces wrong result when a frame is missing source (such as from eval)
Take this (modified from the original) trace:

```
Traceback (most recent call last):
  File "<string>", line 2, in _some_function
  File "myfile.py", line 3, in some_other_function
    return foo(bar, baz)
MyException: ExceptionValue
```

ParsedException gives me an incorrect result:

```
>>> ParsedException.from_string(x)
ParsedException(u'    return foo(bar, baz)', u'', frames=[{'source_line': u'File "myfile.py", line 3, in some_other_function', 'filepath': u'<string>', 'lineno': u'2', 'funcname': u'_some_function'}])
```

diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/tbutils_test.py b/tests/tbutils_test.py
new file mode 100644
index 0000000..64eb17a
--- /dev/null
+++ b/tests/tbutils_test.py
@@ -0,0 +1,54 @@
+from __future__ import absolute_import
+from __future__ import unicode_literals
+
+from boltons.tbutils import ParsedException
+
+
+def test_normal_tb():
+    tb = '''\
+Traceback (most recent call last):
+  File "<string>", line 2, in _some_function
+    return some_other_function(1)
+  File "myfile.py", line 3, in some_other_function
+    return foo(bar, baz)
+MyException: ExceptionValue
+'''
+    parsed = ParsedException.from_string(tb)
+    assert parsed.exc_type == 'MyException'
+    assert parsed.exc_msg == ' ExceptionValue'
+    assert parsed.frames == [
+        {
+            'source_line': 'return some_other_function(1)',
+            'filepath': '<string>',
+            'lineno': '2',
+            'funcname': '_some_function'
+        },
+        {
+            'source_line': 'return foo(bar, baz)',
+            'filepath': 'myfile.py',
+            'lineno': '3',
+            'funcname': 'some_other_function',
+        }
+    ]
+
+
+def test_eval_tb():
+    tb = '''\
+Traceback (most recent call last):
+  File "<string>", line 2, in _some_function
+  File "myfile.py", line 3, in some_other_function
+    return foo(bar, baz)
+MyException: ExceptionValue
+'''
+    parsed = ParsedException.from_string(tb)
+    assert parsed.exc_type == 'MyException'
+
+
+def test_last_line_is_eval_like():
+    tb = '''\
+Traceback (most recent call last):
+  File "<string>", line 2, in _some_function
+MyException: ExceptionValue
+'''
+    parsed = ParsedException.from_string(tb)
+    assert parsed.exc_type == 'MyException'

pip install -e .
parse_log_pytest
pytest
py pytest
3.4
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
-e git+https://github.com/mahmoud/boltons.git@c9b3d2452e4ffe43920874f4f6f2e8fe425ebf00#egg=boltons
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: boltons
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
prefix: /opt/conda/envs/boltons

tests/tbutils_test.py::test_normal_tb tests/tbutils_test.py::test_eval_tb tests/tbutils_test.py::test_last_line_is_eval_like
boltons/tbutils.py .travis.yml tox.ini
boltons/tbutils.py .travis.yml tox.ini