File: test_nameerror.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (13 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

from test_multiprocessing import support, MPTestBase

class TestMPNameError(MPTestBase):
    processes = 2
    suitepath = os.path.join(os.path.dirname(__file__), 'support', 'nameerror.py')

    def runTest(self):
        print str(self.output)
        assert 'NameError' in self.output
        assert "'undefined_variable' is not defined" in self.output