From 6c1587a157a61b0760e41b17b8368076b27943d1 Mon Sep 17 00:00:00 2001 From: Jonathan Hunt Date: Sun, 28 Apr 2013 16:06:41 -0700 Subject: [PATCH] Added an additional test for import errors in --tx mode. --- testing/acceptance_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index d657b43..34596ee 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -60,6 +60,18 @@ class TestDistribution: "*1 skipped*", ]) + def test_manytests_to_one_import_error(self, testdir): + p1 = testdir.makepyfile(""" + import __import_of_missing_module + def test_import(): + pass + """) + result = testdir.runpytest(p1, '--tx=popen', '--tx=popen') + assert result.ret == 1 + result.stdout.fnmatch_lines([ + "E ImportError: No module named __import_of_missing_module", + ]) + def test_manytests_to_one_popen(self, testdir): p1 = testdir.makepyfile(""" import py