

def test_context_noshare_list(self):
    w1 = window.Window(200, 200)
    try:
        w1.switch_to()
        glist = glGenLists(1)
        glNewList(w2, GL_COMPILE)
        glLoadIdentity()
        glEndList()
        self.assertTrue(glIsList(glist))
    except:
        w1.close()
        raise
    w2 = window.Window(200, 200, context=self.create_context(None))
    try:
        w2.set_visible(True)
        w2.switch_to()
        self.assertTrue((not glIsList(glist)))
    finally:
        w1.close()
        w2.close()

dataset/ETHPy150Open ardekantur/pyglet/tests/window/CONTEXT_SHARE.py CONTEXT_SHARE.test_context_noshare_list/VarMisuse@40/52 `glist`->`w2`