Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed remains from times when tests could be run outside of runtest…

…s.py.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4cfb7632e0843edb19b38896a77b6e1e43711d77 1 parent 4819797
@aaugustin aaugustin authored
View
4 django/contrib/markup/tests.py
@@ -83,7 +83,3 @@ def test_no_docutils(self):
t = Template("{% load markup %}{{ rest_content|restructuredtext }}")
rendered = t.render(Context({'rest_content':self.rest_content})).strip()
self.assertEqual(rendered, self.rest_content)
-
-
-if __name__ == '__main__':
- unittest.main()
View
5 tests/regressiontests/cache/tests.py
@@ -1581,8 +1581,3 @@ def test_admin(self):
response = self.client.get('/test_admin/admin/')
self.assertEqual(response.status_code, 200)
self.assertTrue(response.has_header('ETag'))
-
-
-if __name__ == '__main__':
- unittest.main()
-
View
3  tests/regressiontests/db_typecasts/tests.py
@@ -53,6 +53,3 @@ def test_typeCasts(self):
for inpt, expected in v:
got = getattr(typecasts, k)(inpt)
self.assertEqual(got, expected, "In %s: %r doesn't match %r. Got %r instead." % (k, inpt, expected, got))
-
-if __name__ == '__main__':
- unittest.main()
View
3  tests/regressiontests/templates/loaders.py
@@ -153,6 +153,3 @@ def test_select_templates_from_empty_list(self):
self.assertRaisesRegexp(TemplateDoesNotExist,
'No template names provided$',
loader.select_template, [])
-
-if __name__ == "__main__":
- unittest.main()
View
4 tests/regressiontests/templates/tests.py
@@ -1711,7 +1711,3 @@ def test_include_only(self):
template.Template('{% include "child" only %}').render(ctx),
'none'
)
-
-
-if __name__ == "__main__":
- unittest.main()
Please sign in to comment.
Something went wrong with that request. Please try again.