[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame for S60 update



Hi,

Jussi Toivola wrote:
It was mentioned in an earlier post the Python will soon be updated on the S60. Any idea to what version?

The new version came out just before christmas and it's Python 2.5.1.
It is a 'rough version' so I haven't tried to work on it yet.

That's good. So we can hold off a bit on the merge.

The test aren't designed for Python 2.2. It will need patching in
unittest_patch.py.
A set() is used in TestTags.__call__():

          combined = set()

A place in getTestCaseNames may pass a tuple to str.startswith() when the
--incomplete option is invoked:

  def test_wanted(attrname, testCaseClass=testCaseClass,
                            prefix=self.testMethodPrefix):
      if not attrname.startswith(prefix): return False  # <== Here
      else:
          actual_attr = getattr(testCaseClass, attrname)
          return (
               callable(actual_attr) and
               not [t for t in  get_tags(actual_attr) if t in self.exclude]
          )

Also the subprocess option probably won't work. So just run the tests
without any options. Alternatively, they can be executed individually.

Thanks for the info. Maybe I should work on OpenC and the new Python
version first before trying to make the tests run.

____________________

Individual unit test files should work without problem, eg test\rect_test.py. It is just run_tests.py that uses unittest_patch.py. And as far as I can tell that was the only problem area. But yes, if you can get Pygame working with a minimum of changes that would be best.

Lenard

--
Lenard Lindstrom
<len-l@xxxxxxxxx>