summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-02 23:46:29 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-08-02 23:46:29 +0000
commitee5852753d8f3974585b987a5403f299dcb417b6 (patch)
tree224695a44d4051ff2c92e6fd42de6827be74dfb3 /examples
parenteee7b30b918df58e180c5679ed62ca1b8c401845 (diff)
downloadpyserial-ee5852753d8f3974585b987a5403f299dcb417b6.tar.gz
- fix an issue w/ test setup
- disable one test that can't be tested that way (because of new test init code) git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@275 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'examples')
-rw-r--r--examples/test_advanced.py4
-rw-r--r--examples/test_high_load.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/test_advanced.py b/examples/test_advanced.py
index d870735..52bcbee 100644
--- a/examples/test_advanced.py
+++ b/examples/test_advanced.py
@@ -149,7 +149,9 @@ class Test_ChangeAttributes(unittest.TestCase):
# no illegal values here, normal rules for the boolean value of an
# object are used thus all objects have a truth value.
- def test_UnconfiguredPort(self):
+ # this test does not work anymore since serial_class_for_url that is used
+ # now, already sets a port
+ def disabled_test_UnconfiguredPort(self):
# an unconfigured port cannot be opened
self.failUnlessRaises(serial.SerialException, self.s.open)
diff --git a/examples/test_high_load.py b/examples/test_high_load.py
index 25c01be..8306df1 100644
--- a/examples/test_high_load.py
+++ b/examples/test_high_load.py
@@ -44,7 +44,7 @@ class TestHighLoad(unittest.TestCase):
#~ N = 1
def setUp(self):
- self.s = serial.serial_class_for_url(PORT, PORT, BAUDRATE, timeout=10)
+ self.s = serial.serial_class_for_url(PORT, BAUDRATE, timeout=10)
def tearDown(self):
self.s.close()