pygame / test / color_test.py

Diff from to

test/color_test.py

         
     def test_Color_type_works_for_Surface_get_and_set_colorkey(self):
         s = pygame.Surface((32, 32))
-        for r, g, b, a in pygame.color.THECOLORS.itervalues():
-            c = pygame.Color(r,g,b,a)
+        
+        c = pygame.Color(33, 22, 11, 255)
+        s.set_colorkey(c)
 
-            s.set_colorkey(c)
+        get_r, get_g, get_b, get_a = s.get_colorkey()
 
-            get_r, get_g, get_b, get_a = s.get_colorkey()
-
-            self.assert_(get_r == c.r)
-            self.assert_(get_g == c.g)
-            self.assert_(get_b == c.b)
-            self.assert_(get_a == c.a)
+        self.assert_(get_r == c.r)
+        self.assert_(get_g == c.g)
+        self.assert_(get_b == c.b)
+        self.assert_(get_a == c.a)
 
 ########## HSLA, HSVA, CMY, I1I2I3 ALL ELEMENTS WITHIN SPECIFIED RANGE #########
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.