Skip to content

Commit

Permalink
Properly handle the fact that lists are mutable when trying to mainta…
Browse files Browse the repository at this point in the history
…in state in a test.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Nov 2, 2010
1 parent 909c44e commit 7dfefa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regressiontests/app_loading/tests.py
Expand Up @@ -10,7 +10,7 @@

class InstalledAppsGlobbingTest(TestCase):
def setUp(self):
self.OLD_SYS_PATH = sys.path
self.OLD_SYS_PATH = sys.path[:]
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
self.OLD_TZ = os.environ.get("TZ")

Expand All @@ -28,7 +28,7 @@ def tearDown(self):
class EggLoadingTest(TestCase):

def setUp(self):
self.old_path = sys.path
self.old_path = sys.path[:]
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)

# This test adds dummy applications to the app cache. These
Expand Down

0 comments on commit 7dfefa7

Please sign in to comment.