Skip to content

Commit

Permalink
First crack at Python 3 compatibility
Browse files Browse the repository at this point in the history
Mostly we just use mininet.util.pexpect so that we can use
unicode strings without changing calls to pexpect.spawn()
  • Loading branch information
lantz committed Jul 26, 2018
1 parent 6a387fa commit e37afe9
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion examples/test/test_bind.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testBind( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_clusterSanity.py
Expand Up @@ -5,7 +5,7 @@
'''

import unittest
import pexpect
from mininet.util import pexpect

class clusterSanityCheck( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_controllers.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testControllers( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_controlnet.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testControlNet( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_cpu.py
Expand Up @@ -15,7 +15,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testCPU( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_emptynet.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testEmptyNet( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_hwintf.py
Expand Up @@ -7,7 +7,7 @@
import unittest
import re

import pexpect
from mininet.util import pexpect

from mininet.log import setLogLevel
from mininet.node import Node
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_intfoptions.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testIntfOptions( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_limit.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testLimit( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_linearbandwidth.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testLinearBandwidth( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_linuxrouter.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from mininet.util import quietRun

class testLinuxRouter( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_multilink.py
Expand Up @@ -6,7 +6,7 @@
'''

import unittest
import pexpect
from mininet.util import pexpect

class testMultiLink( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_multiping.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from collections import defaultdict

class testMultiPing( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_multipoll.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testMultiPoll( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_multitest.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testMultiTest( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_nat.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from mininet.util import quietRun

destIP = '8.8.8.8' # Google DNS
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_natnet.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from mininet.util import quietRun

class testNATNet( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_numberedports.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from collections import defaultdict
from mininet.node import OVSSwitch

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_popen.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testPopen( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_scratchnet.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect

class testScratchNet( unittest.TestCase ):

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_simpleperf.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys
from mininet.log import setLogLevel

Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_sshd.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
from mininet.clean import sh

class testSSHD( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_tree1024.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testTree1024( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_treeping64.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys

class testTreePing64( unittest.TestCase ):
Expand Down
2 changes: 1 addition & 1 deletion examples/test/test_vlanhost.py
Expand Up @@ -5,7 +5,7 @@
"""

import unittest
import pexpect
from mininet.util import pexpect
import sys
from mininet.util import quietRun

Expand Down

0 comments on commit e37afe9

Please sign in to comment.