def test_win32Definition(self):
        ext = ConditionalExtension("whatever", ["whatever.c"],
                                   define_macros=[("whatever", 2)])
        args = get_setup_args(conditionalExtensions=[ext])
        builder = args["cmdclass"]["build_ext"](Distribution())
        self.patch(os, "name", "nt")
        builder.prepare_extensions()
        self.assertEqual(ext.define_macros, [("whatever", 2), ("WIN32", 1)])
When building on Windows NT, the WIN32 macro will be defined as 1.
dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_dist.py/SetupTests.test_win32Definition