summaryrefslogtreecommitdiff
path: root/unit_tests/test_utils.py
diff options
context:
space:
mode:
authorAlex Stewart <alex@foogod.com>2010-09-01 00:09:39 -0700
committerAlex Stewart <alex@foogod.com>2010-09-01 00:09:39 -0700
commit98915e63e3eef575f05645c191ea5e82816a126e (patch)
tree9f603266e4ff9203bbee392a359900fdccd14a1f /unit_tests/test_utils.py
parent3b4d7b94d06f5e7129ec6b3caf41407580e0e1a6 (diff)
downloadnose-98915e63e3eef575f05645c191ea5e82816a126e.tar.gz
More 3.x fixups (Now down to only 5 of 331 tests not passing)
Diffstat (limited to 'unit_tests/test_utils.py')
-rw-r--r--unit_tests/test_utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/unit_tests/test_utils.py b/unit_tests/test_utils.py
index 4a26ec7..13ccf6f 100644
--- a/unit_tests/test_utils.py
+++ b/unit_tests/test_utils.py
@@ -2,6 +2,7 @@ import os
import unittest
import nose
from nose import case
+from nose.pyversion import unbound_method
# don't import * -- some util functions look testlike
from nose import util
@@ -86,14 +87,14 @@ class TestUtils(unittest.TestCase):
foo_funct = case.FunctionTestCase(baz)
foo_functu = unittest.FunctionTestCase(baz)
- foo_mtc = case.MethodTestCase(Foo.bar)
+ foo_mtc = case.MethodTestCase(unbound_method(Foo, Foo.bar))
me = util.src(absfile(__file__))
self.assertEqual(test_address(baz),
(me, __name__, 'baz'))
assert test_address(Foo) == (me, __name__, 'Foo')
- assert test_address(Foo.bar) == (me, __name__,
- 'Foo.bar')
+ assert test_address(unbound_method(Foo, Foo.bar)) == (me, __name__,
+ 'Foo.bar')
assert test_address(f) == (me, __name__, 'Foo')
assert test_address(f.bar) == (me, __name__, 'Foo.bar')
assert test_address(nose) == (