summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_platform.py
Commit message (Collapse)AuthorAgeFilesLines
* test_platform fails on OS X Snow Leopard because the UNIX command to get theBrett Cannon2009-09-031-1/+7
| | | | | | | | canonical version, sw_vers, leaves off trailing zeros in the version number (e.g. 10.6 instead of 10.6.0). Test now compensates by tacking on extra zeros for the test comparison. Fixes issue #6806.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-3/+3
|
* add support for PyPyBenjamin Peterson2009-03-261-0/+5
|
* roll old test in with new oneBenjamin Peterson2009-03-261-18/+17
|
* more and more implementations now support sys.subversionBenjamin Peterson2009-03-261-3/+3
|
* add much better tests for python version information parsingBenjamin Peterson2009-03-261-19/+46
|
* Remove the sys.version_info shortcut, since they cause the APIsMarc-André Lemburg2009-03-251-20/+29
| | | | | | | | | to return different information than the _sys_version() output used in previous Python versions. This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings Added more tests for the various platform functions.
* #4157 move two test functions out of platform.py.Amaury Forgeot d'Arc2008-10-211-0/+34
| | | | | | Turn them into unit tests, and correct an obvious typo: (("a", "b") ("c", "d") ("e", "f")) compiles even with the missing commas, but does not execute very well...
* More strict test. Consider the case sys.executable itself is symlink.Hirokazu Yamamoto2008-10-061-4/+5
|
* Added the test for issue3762.Hirokazu Yamamoto2008-10-061-0/+15
|
* backport of 64096Benjamin Peterson2008-06-101-1/+1
|
* check for toolbox glue before testing platform.mac_ver intenslyBenjamin Peterson2008-05-211-1/+8
|
* fix test_platform (os was not imported)Benjamin Peterson2008-05-181-0/+1
|
* - Add unittests for platform.mac_ver (or rather, ensure that the unittest forRonald Oussoren2008-05-181-6/+23
| | | | | | | that function actually tests something on OSX). - Add documentation to platform.mac_ver that explains why the middle element of the return value will not contain useful information.
* make test_platform a bit more assertive (We'll see what the buildbots say.)Benjamin Peterson2008-05-161-4/+15
|
* Fix test_platform on cygwin. When running from build area, sys.executableAnthony Baxter2006-04-041-1/+6
| | | | | is 'python'. But 'python' is actually a directory, 'python.exe' is the executable.
* Add a rudimentary test for the platform module that at least calls eachWalter Dörwald2005-11-211-0/+74
documented function once.