Commits

Lenard Lindstrom  committed 90da578

disable color slice test for Python 3

  • Participants
  • Parent commits cc22a0c

Comments (0)

Files changed (2)

File test/color_test.py

         self.assertEquals(pygame.color.Color('red'), pygame.color.Color(' r e d '))
 
     def test_slice(self):
+        """|tags: python3_ignore|"""
         # slicing a color gives you back a tuple.
         # do all sorts of slice combinations.
         c = pygame.Color(1,2,3,4)

File test/test_utils/run_tests.py

         option_exclude += ('subprocess_ignore',)
     elif 'ignore' not in option_exclude:
         option_exclude += ('ignore',)
+    if sys.version_info < (3, 0, 0):
+        option_exclude += ('python2_ignore',)
+    else:
+        option_exclude += ('python3_ignore',)
 
     main_dir, test_subdir, fake_test_subdir = prepare_test_env()
     test_runner_py = os.path.join(test_subdir, "test_utils", "test_runner.py")