def METHOD_NAME(self):
    temp_path = tempfile.mkdtemp()
    self.addCleanup(os_helper.rmtree, temp_path)
    conout_path = os.path.join(temp_path, 'CONOUT$')
    with open(conout_path, 'wb', buffering=0) as f:
        # bpo-45354: Windows 11 changed MS-DOS device name handling
        if (6, 1) < sys.getwindowsversion()[:3] < (10, 0, 22000):
            self.assertIsInstance(f, ConIO)
        else:
            self.assertNotIsInstance(f, ConIO)