python/samba/gp_parse: Fix test errors with python3.8
authorNoel Power <noel.power@suse.com>
Fri, 13 Mar 2020 17:32:20 +0000 (17:32 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Mar 2020 20:46:42 +0000 (20:46 +0000)
commit5406205382fa8177ea0993a5b0996dc5e7cb5abe
tree361b21dc45174555b700204396f896cd158fca13
parentff70d7cc3ae60a0e6868f95357ee486ed7491e9a
python/samba/gp_parse: Fix test errors with python3.8

UNEXPECTED(failure): samba.tests.samba_tool.gpo.samba.tests.samba_tool.gpo.GpoCmdTestCase.test_backup_restore_generalize(ad_dc:local)
REASON: Exception: Exception: Traceback (most recent call last):
  File "/tmp/samba-testbase/b28/samba-ad-dc-1/bin/python/samba/tests/samba_tool/gpo.py", line 434, in test_backup_restore_generalize
    self.assertIsNone(has_difference(os.path.join(new_path, 'policy',

This caused because prior to 3.8 minodom.toprettyxml() was sorting the
attribute order, now it preserves the attribute order specified by the user
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gp_parse/gp_pol.py