[Python] Remove workarounds for Python 3.2 compatibility
This commit is contained in:
parent
9279e0828e
commit
d01992c79c
1 changed files with 0 additions and 4 deletions
|
|
@ -30,8 +30,6 @@ class TestThermoPhase(utilities.CanteraTest):
|
|||
|
||||
def test_n_atoms(self):
|
||||
data = [(1, 'O', 'O'), (2, 'O', 'O2'), (1, b'H', b'OH'),
|
||||
# disabled to preserve support for Python 3.2
|
||||
# (2, 'H', 'H2O'), (2, u'O', u'H2O2'), (1, 'Ar', 'AR'),
|
||||
(2, 'H', 'H2O'), (2, 'O', 'H2O2'), (1, 'Ar', 'AR'),
|
||||
(0, 'O', 'H'), (0, 'H', 'AR'), (0, 'Ar', 'HO2')]
|
||||
for (n, elem, species) in data:
|
||||
|
|
@ -156,8 +154,6 @@ class TestThermoPhase(utilities.CanteraTest):
|
|||
self.assertNear(X[0], 0.25)
|
||||
self.assertNear(X[3], 0.75)
|
||||
|
||||
# Change back to u'xx' syntax when support for Python 3.2 is dropped
|
||||
#self.phase.Y = {u'H2':1.0, u'O2':3.0}
|
||||
self.phase.Y = {'H2':1.0, 'O2':3.0}
|
||||
Y = self.phase.Y
|
||||
self.assertNear(Y[0], 0.25)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue