(self)
| 95 | |
| 96 | # This test does not test much. |
| 97 | def testBasics(self): |
| 98 | logdir = self._test_dir("basics") |
| 99 | with ops.Graph().as_default(): |
| 100 | my_op = constant_op.constant(1.0) |
| 101 | sv = supervisor.Supervisor(logdir=logdir) |
| 102 | sess = sv.prepare_or_wait_for_session("") |
| 103 | for _ in xrange(10): |
| 104 | self.evaluate(my_op) |
| 105 | sess.close() |
| 106 | sv.stop() |
| 107 | |
| 108 | def testManagedSession(self): |
| 109 | logdir = self._test_dir("managed_session") |
nothing calls this directly
no test coverage detected