aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/oldstyleclass_as_number_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/oldstyleclass_as_number_test.py')
-rw-r--r--tests/samplebinding/oldstyleclass_as_number_test.py3
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()