Skip to content

Instantly share code, notes, and snippets.

@markrwilliams
Last active May 2, 2018 22:22
Show Gist options
  • Save markrwilliams/d007d1e7486ca4970759a0560ed6fef7 to your computer and use it in GitHub Desktop.
Save markrwilliams/d007d1e7486ca4970759a0560ed6fef7 to your computer and use it in GitHub Desktop.

What?

A demonstration of disttrial dropping tracebacks under Python 3

How?

  1. Clone this gist
  2. Create a Python 3 virtual environment
  3. Install this gist into the virtualenv with pip install .
  4. Look at the traceback from trial trialJTraceback
  5. Look at the absence of a traceback from trial -j trialJTraceback
from setuptools import setup
setup(
name="trialJTraceback",
py_modules=["trialJTraceback"],
install_requires=["Twisted==18.4.0"],
)
from twisted.trial import unittest
class TestWithTraceback(unittest.SynchronousTestCase):
def test_raises(self):
def f():
def g():
raise ValueError()
g()
f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment