Commit Graph

21 Commits

Author SHA1 Message Date
Ronald Oussoren 3a04a25206 Merged revisions 83075 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83075 | ronald.oussoren | 2010-07-23 12:54:59 +0100 (Fri, 23 Jul 2010) | 5 lines

  Fix for issue 7895. Avoid crashing the interpreter
  when calling platform.mac_ver after calling os.fork by
  reading from a system configuration file instead of
  using OSX APIs.
........
2010-07-23 12:41:00 +00:00
R. David Murray c9d1a7845b Issue #7860: platform.uname now reports the correct 'machine' type
when Python is running in WOW64 mode on 64 bit Windows.  Patch by
Brian Curtin.
2010-03-22 15:55:09 +00:00
Georg Brandl cd4a21bb8e Fix more unbound locals in code paths that do not seem to be used. 2010-02-06 23:34:10 +00:00
Benjamin Peterson a43f34cc2a fix an UnboundLocalError when the release file is empty #7773 2010-01-25 03:31:13 +00:00
Brett Cannon e7e941e7f7 test_platform fails on OS X Snow Leopard because the UNIX command to get the
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.
2009-09-03 21:25:21 +00:00
Benjamin Peterson 5c8da86f3a convert usage of fail* to assert* 2009-06-30 22:57:08 +00:00
Benjamin Peterson 0ad9b7727d add support for PyPy 2009-03-26 19:09:21 +00:00
Benjamin Peterson 94e4e2a7e5 roll old test in with new one 2009-03-26 18:58:30 +00:00
Benjamin Peterson b457b89323 more and more implementations now support sys.subversion 2009-03-26 18:55:48 +00:00
Benjamin Peterson f521b8c6d2 add much better tests for python version information parsing 2009-03-26 18:35:37 +00:00
Marc-André Lemburg a519cfc953 Remove the sys.version_info shortcut, since they cause the APIs
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.
2009-03-25 19:44:58 +00:00
Amaury Forgeot d'Arc fbc0b0ca29 #4157 move two test functions out of platform.py.
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...
2008-10-21 22:01:38 +00:00
Hirokazu Yamamoto 18c4e8734c More strict test. Consider the case sys.executable itself is symlink. 2008-10-06 02:41:59 +00:00
Hirokazu Yamamoto 6e5e50104c Added the test for issue3762. 2008-10-06 01:57:03 +00:00
Benjamin Peterson 31296c09ed backport of 64096 2008-06-10 22:39:25 +00:00
Benjamin Peterson a4e4ef1cea check for toolbox glue before testing platform.mac_ver intensly 2008-05-21 22:52:39 +00:00
Benjamin Peterson 913c15c1c6 fix test_platform (os was not imported) 2008-05-18 22:07:42 +00:00
Ronald Oussoren 7a0f4c75b1 - Add unittests for platform.mac_ver (or rather, ensure that the unittest for
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.
2008-05-18 20:54:47 +00:00
Benjamin Peterson 5915a4dcfe make test_platform a bit more assertive (We'll see what the buildbots say.) 2008-05-16 02:24:49 +00:00
Anthony Baxter 06853fc150 Fix test_platform on cygwin. When running from build area, sys.executable
is 'python'. But 'python' is actually a directory, 'python.exe' is the
executable.
2006-04-04 15:52:00 +00:00
Walter Dörwald c69d1c498f Add a rudimentary test for the platform module that at least calls each
documented function once.
2005-11-21 17:48:12 +00:00