Commit f65ff825 authored by Alain Takoudjou's avatar Alain Takoudjou

Update Slaprunner unittest

parent c3ad77a6
This diff is collapsed.
...@@ -13,7 +13,7 @@ import os ...@@ -13,7 +13,7 @@ import os
import subprocess import subprocess
import time import time
import urllib import urllib
import xml.dom from xml.dom import minidom
import xml_marshaller import xml_marshaller
from flask import jsonify from flask import jsonify
...@@ -804,8 +804,8 @@ def readParameters(path): ...@@ -804,8 +804,8 @@ def readParameters(path):
a dictionnary of instance parameters.""" a dictionnary of instance parameters."""
if os.path.exists(path): if os.path.exists(path):
try: try:
xmldoc = xml.dom.minidom.parse(path) xmldoc = minidom.parse(path)
obj = {} object = {}
for elt in xmldoc.childNodes: for elt in xmldoc.childNodes:
sub_obj = {} sub_obj = {}
for subnode in elt.childNodes: for subnode in elt.childNodes:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment