From c3251144f03519fe8faf0f4555e6b9a04289af4b Mon Sep 17 00:00:00 2001 From: victor-rene Date: Fri, 16 Jan 2015 14:50:25 +0100 Subject: [PATCH] Removed debug print, oops. --- kivy/tests/test_utils.py | 13 +++++++------ kivy/utils.py | 1 - 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kivy/tests/test_utils.py b/kivy/tests/test_utils.py index f80c196fd..112ff333c 100644 --- a/kivy/tests/test_utils.py +++ b/kivy/tests/test_utils.py @@ -5,9 +5,9 @@ utils tests import os, unittest try: - from unittest.mock import MagicMock, patch, PropertyMock # python 3 + from unittest.mock import patch # python 3.x except: - from mock import MagicMock, patch, PropertyMock + from mock import patch # python 2.x from kivy.utils import (boundary, escape_markup, format_bytes_to_human, is_color_transparent, SafeList, get_random_color, get_hex_from_color, @@ -151,10 +151,11 @@ class UtilsTest(unittest.TestCase): self.assertEqual(p, [x[i], y[i]]) def test_Platform(self): - pf = Platform() # - print pf() # __call__ deprecated - print hash(pf) - print repr(pf) + # Those calls do not have specific intent, no assertions + pf = Platform() + pf() # __call__ deprecated + hash(pf) + repr(pf) def test_Platform_android(self): with patch.dict('os.environ', {'ANDROID_ARGUMENT': ''}): diff --git a/kivy/utils.py b/kivy/utils.py index e5d7eaf96..ec50afd82 100644 --- a/kivy/utils.py +++ b/kivy/utils.py @@ -275,7 +275,6 @@ class Platform(object): if self._platform_ios is None: self._platform_ios = (environ.get('KIVY_BUILD', '') == 'ios') - print _sys_platform, str(_sys_platform), _sys_platform[:5], _sys_platform == 'darwin' # On android, _sys_platform return 'linux2', so prefer to check the # import of Android module than trying to rely on _sys_platform. if self._platform_android is True: