Skip to content
Permalink
Browse files

Prevent model name from being permanently changed (#399)

  • Loading branch information...
jmuhlich committed Jan 8, 2019
1 parent 5dd4a7d commit b8e036c5459eb0c472a9e010bb6b97166bcaf5a4
Showing with 3 additions and 1 deletion.
  1. +3 −1 pysb/tests/test_simulationresult.py
@@ -10,6 +10,7 @@
import warnings
from pysb.pattern import SpeciesPatternMatcher
import collections
import copy
import pandas as pd


@@ -98,7 +99,8 @@ def test_on_demand_observable(self):

def test_save_load():
tspan = np.linspace(0, 100, 101)
model = tyson_oscillator.model
# Make a copy of model so other tests etc. don't see the changed name.
model = copy.deepcopy(tyson_oscillator.model)
test_unicode_name = u'Hello \u2603 and \U0001f4a9!'
model.name = test_unicode_name
sim = ScipyOdeSimulator(model, integrator='lsoda')

0 comments on commit b8e036c

Please sign in to comment.
You can’t perform that action at this time.