diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-09-28 17:55:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:18 -0300 |
commit | b9ab302dd7aff3ecbbbc7ffe1ef2ef0bf4956a5a (patch) | |
tree | b2c62e3ae790b7c5a70f7308282ec2975aa168a2 /tests/samplebinding/oldstyleclass_as_number_test.py | |
parent | 6b21c2fa5eeb6a7c7b6533f1c966a47d8ef07e69 (diff) |
Fixed tests to work with python3.x and python2.x
Diffstat (limited to 'tests/samplebinding/oldstyleclass_as_number_test.py')
-rw-r--r-- | tests/samplebinding/oldstyleclass_as_number_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/samplebinding/oldstyleclass_as_number_test.py b/tests/samplebinding/oldstyleclass_as_number_test.py index 4e4be3342..4045bac8d 100644 --- a/tests/samplebinding/oldstyleclass_as_number_test.py +++ b/tests/samplebinding/oldstyleclass_as_number_test.py @@ -26,6 +26,7 @@ import unittest import sample +from py3kcompat import IS_PY3K class OldStyle: pass @@ -71,6 +72,6 @@ class TestOldStyleClassAsNumber(unittest.TestCase): obj = NewStyleNumber(123) self.assertEqual(sample.acceptInt(obj), obj.value) -if __name__ == "__main__": +if __name__ == "__main__" and not IS_PY3K: unittest.main() |