@unittest.skipUnless(six.PY3, 'Only for Py3')
    def test_py3_available(self):
        ws = pkg_resources.WorkingSet()
        try:
            ws.require('protobuf<3.0.0')
            ver = 2
        except pkg_resources.VersionConflict:
            ver = 3

        if 3 >= ver:
            self.assertTrue(links.caffe.caffe_function.available)
        else:
            self.assertFalse(links.caffe.caffe_function.available)

            with self.assertRaises(RuntimeError):
                caffe.CaffeFunction('')
dataset/ETHPy150Open pfnet/chainer/tests/chainer_tests/links_tests/caffe_tests/test_caffe_function.py/TestCaffeFunctionAvailable.test_py3_available/swapped operands of `>=`