Source

pygame / test / image_test.py

Author Commit Message Labels Comments Date
akalias
removed command line options for individual test_modules, use run_tests.py module --flags to run individual module with options ( fail incomplete etc ). Less conflict with unittest command line parser.
akalias
Added a redirect stderr/stdout mode to test runner. Only output unittest results and not test noise
akalias
Added in many test stubs, hopefully some test faeries will fill some of them out.
illume
added tests for uppercase file names too. eg JPG
illume
really truely test the magic
illume
really test the magic
illume
tests the magic numbers for image saves, to make sure the correct file formats are used.
illume
unittest for saving images
illume
Changes from Brian Fisher to add RGBA_PREMULT & ARGB_PREMULT type to image.tostring (a very nice thing for getting images into OpenGL) Thanks Brian!
illume
Fix for rw_close_th using helper after PyMem_Del(helper) is called. A test for pygame.image.load(open(...))
illume
A patch from Brian Fisher. Tests if fromstring, and tostring work correctly for alpha. Thanks!
illume
fixed up jpg test, and made tests also load a python file object before loading the image.
illume
Added a test for loading jpg, and png files. Commented out the display tests, as they crash on windows. It's to do with threading, and unittest calling the tests in a sub thread. Whereas SDL requires you to call some of those functions in the main thread.
illume
the start of a unittest for images