Block generate_test, and docs generating from running in python3.

- Doc generation is currently unsupported in python3

- These both end in errors in python 3.5.1+

PiperOrigin-RevId: 161137467
This commit is contained in:
Mark Daoust 2017-07-06 15:13:23 -07:00 committed by TensorFlower Gardener
parent 97cbcac453
commit 755fa7b501
2 changed files with 4 additions and 1 deletions

View File

@ -421,7 +421,7 @@ class DocGenerator(object):
def __init__(self):
if sys.version_info >= (3, 0):
print('Warning: Doc generation is not supported from python3.')
sys.exit('Doc generation is not supported from python3.')
self.argument_parser = argparse.ArgumentParser()
self._py_modules = None
self._private_map = _get_default_private_map()

View File

@ -52,6 +52,9 @@ class DummyVisitor(object):
class GenerateTest(googletest.TestCase):
def test_write(self):
if sys.version_info >= (3, 0):
self.skipTest('Warning: Doc generation is not supported from python3.')
module = sys.modules[__name__]
index = {