From 07a8e44a598666ede3f5a2b57eaae7ac60407bf8 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Sun, 3 Sep 2017 07:58:45 -0500 Subject: [PATCH 01/35] Update for development version 1.2.7-DEV --- README.txt | 2 +- doc/conf.py | 2 +- pyxb/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index 39c2c4d2..8d58e3ed 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,5 @@ PyXB -- Python W3C XML Schema Bindings -Version 1.2.6 +Version 1.2.7-DEV The source releases includes pre-built bundles for common XML namespaces, assorted web service namespaces, and SAML. A bundle with over 75 namespaces diff --git a/doc/conf.py b/doc/conf.py index 36b75ea8..90bf8d7a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -52,7 +52,7 @@ # The short X.Y version. version = '1.2' # The full version, including alpha/beta/rc tags. -release = '1.2.6' +release = '1.2.7-DEV' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyxb/__init__.py b/pyxb/__init__.py index 5e6dd113..1773f16d 100644 --- a/pyxb/__init__.py +++ b/pyxb/__init__.py @@ -61,7 +61,7 @@ def __init__ (self, *args, **kw): if issubclass(self.__class__.mro()[-2], ( list, dict )): super(cscRoot, self).__init__(*args) -__version__ = '1.2.6' +__version__ = '1.2.7-DEV' """The version of PyXB""" __url__ = 'http://pyxb.sourceforge.net' diff --git a/setup.py b/setup.py index 80ab9322..0a19b0bb 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import sys # The current version of the system. Format is #.#.#[-DEV]. -version = '1.2.6' +version = '1.2.7-DEV' # Require Python 2.6 or higher or Python 3.1 or higher if (sys.version_info[:2] < (2, 6)) or ((sys.version_info[0] == 3) and sys.version_info[:2] < (3, 1)): From 8c6646d75ec6f9345e1582c02611984a1d953582 Mon Sep 17 00:00:00 2001 From: Rafael Date: Sat, 27 Jan 2018 17:40:14 +0100 Subject: [PATCH 02/35] test-issue-0092: add reproducing case --- tests/trac/test-issue-0092.py | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/trac/test-issue-0092.py diff --git a/tests/trac/test-issue-0092.py b/tests/trac/test-issue-0092.py new file mode 100644 index 00000000..a8dac8b9 --- /dev/null +++ b/tests/trac/test-issue-0092.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals +import logging +import pyxb.binding.generate +import pyxb.utils.domutils +import xml.dom.minidom as dom + + +if __name__ == '__main__': + logging.basicConfig() +_log = logging.getLogger(__name__) + +xsd = ''' + + + + + + + + + + +''' + +code = pyxb.binding.generate.GeneratePython(schema_text=xsd) + +rv = compile(code, 'test', 'exec') +eval(rv) + +import unittest + +class TestIssue0092 (unittest.TestCase): + def testCreateEmptyTemplate (self): + xmlt = '1