Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly handle the fact that lists are mutable when trying to mainta…

…in state in a test.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7dfefa74ca8e5b0d37a5d13f0fcde6e6f98de9a4 1 parent 909c44e
@alex alex authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/app_loading/tests.py
View
4 tests/regressiontests/app_loading/tests.py
@@ -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")
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.