Changeset 2629


Ignore:
Timestamp:
May 21, 2010 12:40:35 AM (11 years ago)
Author:
wehart
Message:

Changing test semantics: allow user to add the same
value twice to a set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/tests/unit/test_set.py

    r2585 r2629  
    126126        """Check that we can add valid set elements"""
    127127        self.instance.A.add(self.e2,self.e4)
    128         try:
    129           self.instance.A.add(self.e3)
    130         except ValueError:
    131           pass
    132         else:
    133           self.fail("Should fail when adding an element that already exists in a set.")
     128        #try:
     129          #self.instance.A.add(self.e3)
     130        #except ValueError:
     131          #pass
     132        #else:
     133          #self.fail("Should fail when adding an element that already exists in a set.")
    134134        self.failUnlessEqual( len(self.instance.A), 6)
    135135        self.failIf( self.e2 not in self.instance.A, "Cannot find new element in A")
Note: See TracChangeset for help on using the changeset viewer.