Skip to content

Commit

Permalink
Avoid sec issues
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 11, 2022
1 parent f6cee9c commit f6b9869
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
9 changes: 5 additions & 4 deletions test/integration/QuickTestIM.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import unittest

from defusedxml import xmlrpc
xmlrpc.monkey_patch()

try:
from xmlrpclib import ServerProxy
from xmlrpclib import ServerProxy # nosec
except ImportError:
from xmlrpc.client import ServerProxy
import time
import sys
import os

from defusedxml import xmlrpc
xmlrpc.monkey_patch()

sys.path.append("..")
sys.path.append(".")

Expand Down
8 changes: 4 additions & 4 deletions test/integration/TestIM.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import unittest
from defusedxml import xmlrpc
xmlrpc.monkey_patch()

try:
from xmlrpclib import ServerProxy
from xmlrpclib import ServerProxy # nosec
except ImportError:
from xmlrpc.client import ServerProxy

import time
import sys
import os

from defusedxml import xmlrpc
xmlrpc.monkey_patch()

sys.path.append("..")
sys.path.append(".")

Expand Down
8 changes: 4 additions & 4 deletions test/loadtest/LoadTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import os
import random
import datetime
from defusedxml import xmlrpc
xmlrpc.monkey_patch()

try:
from xmlrpclib import ServerProxy
from xmlrpclib import ServerProxy # nosec
except ImportError:
from xmlrpc.client import ServerProxy

from defusedxml import xmlrpc
xmlrpc.monkey_patch()

sys.path.append("..")
sys.path.append(".")

Expand Down
8 changes: 4 additions & 4 deletions test/loadtest/LoadTestR.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import os
import random
import datetime
from defusedxml import xmlrpc
xmlrpc.monkey_patch()

try:
from xmlrpclib import ServerProxy
from xmlrpclib import ServerProxy # nosec
except ImportError:
from xmlrpc.client import ServerProxy

from defusedxml import xmlrpc
xmlrpc.monkey_patch()

sys.path.append("..")
sys.path.append(".")

Expand Down

0 comments on commit f6b9869

Please sign in to comment.