Pillow/Tests
Brian Crowell a7e3b2e47b py3k: The big push
There are two main issues fixed with this commit:

* bytes vs. str: All file, image, and palette data are now handled as
  bytes. A new _binary module consolidates the hacks needed to do this
  across Python versions. tostring/fromstring methods have been renamed to
  tobytes/frombytes, but the Python 2.6/2.7 versions alias them to the old
  names for compatibility. Users should move to tobytes/frombytes.

  One other potentially-breaking change is that text data in image files
  (such as tags, comments) are now explicitly handled with a specific
  character encoding in mind. This works well with the Unicode str in
  Python 3, but may trip up old code expecting a straight byte-for-byte
  translation to a Python string. This also required a change to Gohlke's
  tags tests (in Tests/test_file_png.py) to expect Unicode strings from
  the code.

* True div vs. floor div: Many division operations used the "/" operator
  to do floor division, which is now the "//" operator in Python 3. These
  were fixed.

As of this commit, on the first pass, I have one failing test (improper
handling of a slice object in a C module, test_imagepath.py) in Python 3,
and three that that I haven't tried running yet (test_imagegl,
test_imagegrab, and test_imageqt). I also haven't tested anything on
Windows. All but the three skipped tests run flawlessly against Pythons
2.6 and 2.7.
2013-01-10 08:46:56 -06:00
..
fonts py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
icc py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
images py3k: Provide the missing pngtest_bad.png.base64 2013-01-10 08:46:41 -06:00
bench_get.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
cms_test.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
crash_ttf_memory_error.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
import_all.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
make_hash.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
README.txt py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
run.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
show_icc.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
show_mcidas.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_001_archive.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_000_sanity.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_file_bmp.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_gif.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_jpeg.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_file_msp.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_pcx.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_png.py py3k: The big push 2013-01-10 08:46:56 -06:00
test_file_ppm.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_tiff.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_file_xbm.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_font_bdf.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_font_pcf.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_array.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_convert.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_copy.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_crop.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_draft.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_filter.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_fromstring.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_image_getbands.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getbbox.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getcolors.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getdata.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getextrema.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getim.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_image_getpalette.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getpixel.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_getprojection.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_histogram.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_load.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_mode.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_offset.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_paste.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_point.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_putalpha.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_putdata.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_putpalette.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_putpixel.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_quantize.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_resize.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_rotate.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_save.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_seek.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_show.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_split.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_tell.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_thumbnail.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_tobitmap.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_tostring.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_image_transform.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_transpose.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image_verify.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_image.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagechops.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagecms.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagecolor.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagedraw.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imageenhance.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagefile.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagefileio.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagefilter.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagefont.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagegl.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagegrab.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagemath.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagemode.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imageops_usm.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imageops.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagepalette.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagepath.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imageqt.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagesequence.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imageshow.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagestat.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagetk.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagetransform.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_imagewin.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_lib_image.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
test_lib_pack.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_mode_i16.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
test_numpy.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
tester.py py3k: Backport Gohlke's tests to run on 2.6/2.7 2013-01-10 08:46:39 -06:00
threaded_save.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
versions.py py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00

Minimalistic PIL test framework.

Test scripts are named "test_xxx" and are supposed to output "ok".
That's it.