'L{runner.filenameToModule} raises a C{SyntaxError} when a non-Python
file is passed.'

def test_filenameNotPython(self):

    filename = filepath.FilePath(self.parent).child('notpython')
    filename.setContent("This    isn't    python")
    self.assertRaises(SyntaxError, runner.filenameToModule, filename.path)
