summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2008-10-03 19:32:43 +0000
committerJason Pellerin <jpellerin@gmail.com>2008-10-03 19:32:43 +0000
commita0e3dcfc09fd14e15db21c9e450670b51c686656 (patch)
treeb6620bb4eb107484ac77e70cef6dde413a6c314f
parent6a473db5da54d0be2ae045650da09748576f5808 (diff)
downloadnose-a0e3dcfc09fd14e15db21c9e450670b51c686656.tar.gz
Fixed issue 161 (2.6 compat)
-rw-r--r--CHANGELOG4
-rw-r--r--nose/__init__.py2
-rw-r--r--nose/suite.py6
-rwxr-xr-xtest.sh4
4 files changed, 15 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 9ad0373..e8d7dfe 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+0.10.4
+
+- Made nose compatible with python 2.6.
+
0.10.3
- Fixed bug in nosetests setup command that caused an exception to be raised
diff --git a/nose/__init__.py b/nose/__init__.py
index 9deb02c..139ef0a 100644
--- a/nose/__init__.py
+++ b/nose/__init__.py
@@ -397,7 +397,7 @@ from nose.exc import SkipTest, DeprecatedTest
from nose.tools import with_setup
__author__ = 'Jason Pellerin'
-__versioninfo__ = (0, 10, 3)
+__versioninfo__ = (0, 10, 4)
__version__ = '.'.join(map(str, __versioninfo__))
__all__ = [
diff --git a/nose/suite.py b/nose/suite.py
index d7d36b6..096598d 100644
--- a/nose/suite.py
+++ b/nose/suite.py
@@ -46,6 +46,9 @@ class LazySuite(unittest.TestSuite):
def __repr__(self):
return "<%s tests=generator (%s)>" % (
unittest._strclass(self.__class__), id(self))
+
+ def __hash__(self):
+ return object.__hash__(self)
__str__ = __repr__
@@ -127,6 +130,9 @@ class ContextSuite(LazySuite):
getattr(self.context, '__name__', self.context))
__str__ = __repr__
+ def __hash__(self):
+ return object.__hash__(self)
+
# 2.3 compat -- force 2.4 call sequence
def __call__(self, *arg, **kw):
return self.run(*arg, **kw)
diff --git a/test.sh b/test.sh
index 1b17383..f0dc112 100755
--- a/test.sh
+++ b/test.sh
@@ -11,6 +11,10 @@ echo
echo "python 2.5..."
python2.5 selftest.py
+echo
+echo "python 2.6..."
+python2.6 selftest.py
+
if [ "${JYTHON}x" != "x" ]
then
echo