Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This doesn't need to be a package any more.

Refs #20680.
  • Loading branch information...
commit 09b446dfe86f01f9d21e8c6351a31c5587a5b7a9 1 parent 909433f
@aaugustin aaugustin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/utils/{unittest/__init__.py → unittest.py}
View
4 django/utils/unittest/__init__.py → django/utils/unittest.py
@@ -1,7 +1,9 @@
+from __future__ import absolute_import
+
import warnings
warnings.warn("django.utils.unittest will be removed in Django 1.9.",
- PendingDeprecationWarning)
+ PendingDeprecationWarning, stacklevel=2)
try:
from unittest2 import *

2 comments on commit 09b446d

@charettes
Collaborator

This breaks subpackages imports such as from django.utils.unittest.case import skipIf.

@aaugustin
Owner

I don't think this commit breaks importing from below django.utils.unittest. I think the commit that removes the vendored version does.

This has always been broken; if you did it, you ended up mixing different unittest libraries, and that could result in very hard to track bugs.

Vendoring sucks.

Please sign in to comment.
Something went wrong with that request. Please try again.