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

Re: [pygame] pygame.midi using portmidi?



René Dudfield wrote:



        I think he does have it installed on at least the windows
        installs.

    My windows build box has portmidi.dll in the prebuilts dir, so if
    the setup for making the installer for pygame picks that dll up
    properly, then it should be getting that dll just fine.


Cool. I think Lenard has made a new prebuilts one that doesn't printf debugging info.


    from the build output, it looks like the problem is
    pygame.midi.get_device_info is returning None - I can tell you my
    build machines definitely don't have midi devices (neither
    physical nor virtual) configured, and None seems an appropriate
    return value in such cases. Maybe it's just the tests are bad for
    a machine with no midi devices?


cool.  I thought as much - since the init/quit tests seemed to pass.

Will fix the tests. Will likely tag them interactive, or make them skip if there's no midi devices.

I also didn't want to write output to any midi devices... in-case it woke you up at 3am with some "Electric piano 1" notes or something :) So will tag those tests 'interactive'.


Hi,

I see the entire midi_test.py module is tagged "interactive". Unit tests can be marked interactive on the TestCase and test_* method level as well. See font_test.py for class level tags. To mark a method add "|tags: interactive|" to its doc string.


Lenard