summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/overload_sorting_test.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-28 16:23:55 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-01-28 19:31:55 -0200
commit4835555d4874527ddaf4b0c3bb4c017da96fa9c0 (patch)
treee6264425ca9e71c84c3774f31a10c583a46a144b /tests/samplebinding/overload_sorting_test.py
parent420098145e4e6e2311e987f45c440ed01902a9cb (diff)
downloadshiboken-4835555d4874527ddaf4b0c3bb4c017da96fa9c0.tar.gz
shiboken-4835555d4874527ddaf4b0c3bb4c017da96fa9c0.tar.xz
shiboken-4835555d4874527ddaf4b0c3bb4c017da96fa9c0.zip
Fix regression that caused overload sorting to not respect argument type renames.
Diffstat (limited to 'tests/samplebinding/overload_sorting_test.py')
-rw-r--r--tests/samplebinding/overload_sorting_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/samplebinding/overload_sorting_test.py b/tests/samplebinding/overload_sorting_test.py
index 9d4b1cbe..0cb86642 100644
--- a/tests/samplebinding/overload_sorting_test.py
+++ b/tests/samplebinding/overload_sorting_test.py
@@ -60,6 +60,10 @@ class SimpleOverloadSorting(unittest.TestCase):
'''Passing an implicit convertible object to an overload'''
self.assert_(self.obj.implicit_overload(ImplicitTarget()))
+ def testPyObjectSort(self):
+ self.assertEqual(self.obj.pyObjOverload(1, 2), "int,int")
+ self.assertEqual(self.obj.pyObjOverload(object(), 2), "PyObject,int")
+
class DeepOverloadSorting(unittest.TestCase):