@test_util.run_v1_only('b/120545219')
def testVariableList(self):
    with ops.Graph().as_default(), self.cached_session() as sess:
        v = variables.VariableV1([1, 2], name='v')
        w = variables.VariableV1([3, 4], name='w')
        uninited = variables.report_uninitialized_variables()
        self.assertAllEqual(np.array([b'v', b'w']), self.evaluate(uninited))
        self.evaluate(w.initializer)
        self.assertAllEqual(np.array([b'v']), self.evaluate(uninited))
        v.initializer.run()
        self.assertEqual(0, self.evaluate(uninited).size)
@test_util.run_v1_only('b/120545219')
def testVariableList(self):
    with ops.Graph().as_default(), self.cached_session() as sess:
        v = variables.VariableV1([1, 2], name='v')
        w = variables.VariableV1([3, 4], name='w')
        uninited = variables.report_uninitialized_variables()
        self.assertAllEqual(np.array([b'v', b'w']), self.evaluate(uninited))
        self.evaluate(w.initializer)
        self.assertAllEqual(np.array([b'v']), self.evaluate(uninited))
        v.initializer.run()
        self.assertEqual(0, self.evaluate(uninited).size)