def test_execfileUniversalNewlines(self):
        """
        L{execfile} reads in the specified file using universal newlines so
        that scripts written on one platform will work on another.
        """
        for lineEnding in u"\n", u"\r", u"\r\n":
            script = self.writeScript(u"foo = 'okay'" + lineEnding)
            globalNamespace = {"foo": None}
            execfile(script.path, globalNamespace)
            self.assertEqual("okay", globalNamespace["foo"])

        L{execfile} reads in the specified file using universal newlines so
        that scripts written on one platform will work on another.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_compat.py