Fix imports in failure_demo.py

This commit is contained in:
Bruno Oliveira 2018-01-29 18:23:17 -02:00
parent 71a7b3c062
commit 4c148bd0ef
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ class TestRaises(object):
# thanks to Matthew Scott for this test
def test_dynamic_compile_shows_nicely():
import imp
import sys
src = 'def foo():\n assert 1 == 0\n'
name = 'abc-123'
module = imp.new_module(name)