summaryrefslogtreecommitdiff
path: root/tests/settings_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-21 20:02:00 -0500
committerGitHub <noreply@github.com>2017-01-21 20:02:00 -0500
commitd170c63351944fd91b2206d10f89e7ff75b53b76 (patch)
treee2be66471ab071fa0ce75097d66650b650c53853 /tests/settings_tests
parentc22212220a7900173358a1f16179dcfc9e03de78 (diff)
downloaddjango-d170c63351944fd91b2206d10f89e7ff75b53b76.tar.gz
Refs #23919 -- Removed misc references to Python 2.
Diffstat (limited to 'tests/settings_tests')
-rw-r--r--tests/settings_tests/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py
index bf015affc2..fa51c0af20 100644
--- a/tests/settings_tests/tests.py
+++ b/tests/settings_tests/tests.py
@@ -305,8 +305,7 @@ class TestComplexSettingOverride(SimpleTestCase):
self.assertEqual(settings.TEST_WARN, 'override')
self.assertEqual(len(w), 1)
- # File extension may by .py, .pyc, etc. Compare only basename.
- self.assertEqual(os.path.splitext(w[0].filename)[0], os.path.splitext(__file__)[0])
+ self.assertEqual(w[0].filename, __file__)
self.assertEqual(str(w[0].message), 'Overriding setting TEST_WARN can lead to unexpected behavior.')