[Pyxine-devel] Pyxine fails unit tests on Debian unstable
Status: Pre-Alpha
Brought to you by:
dairiki
|
From: Joe W. <wre...@um...> - 2003-11-11 23:21:35
|
Hi,
As you probably saw, I'm packaging Pyxine for Debian. :) Although it
seems to be working fine, four of the unit tests are failing (both with
Python 2.2 and 2.3). This is Xine 1.0rc2, Pyxine 0.1alpha2.
(This isn't the order I get them in, just the order I feel like
commenting on them in.)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
FAIL: test_get_version_string (xine_test.SimpleXineTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/piman/projects/debian/pyxine/pyxine-0.1alpha2/test/xine_test.=
py", line 33, in test_get_version_string
pyxine.XINE_VERSION)
File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: '1-rc2' !=3D '1-beta4'
Should this be doing >=3D "1-beta4" rather than !=3D? I know string
comparison works for Python versions (and works in this case for Xine's
version), but I don't know if it will consistently work for Xine. Either
way, 1-rc2 does seem to work.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
FAIL: test_set_audio_volume (xine_test.SimpleStreamTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/piman/projects/debian/pyxine/pyxine-0.1alpha2/test/xine_test.=
py", line 248, in test_set_audio_volume
self.failUnlessEqual(stream.audio_volume, 25)
File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: 23 !=3D 25
Setting the volume to 25 seems to be setting it to 23 (consistently).
Maybe my sound card / driver precision (SB Audigy) is just too low to
reach 25 accurately? If this is the case, the test should probably be
something like 20 < x < 30.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
FAIL: test_config_num (xine_test.XineConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/piman/projects/debian/pyxine/pyxine-0.1alpha2/test/xine_test.=
py", line 153, in test_config_num
self.failUnlessEqual(val, 6)
File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: 0 !=3D 6
No idea. Is there some reason why the priority of mpeg2 should be 6,
rather than 0?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
FAIL: test_get_browsable_plugin_ids (xine_test.XineTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/piman/projects/debian/pyxine/pyxine-0.1alpha2/test/xine_test.=
py", line 74, in test_get_browsable_plugin_ids
self.failUnless('file' in browsable_ids)
File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError
Again, I'm not familiar enough with libxine yet to comment on this. If
browsable_ids holds the kind of "MRLs" that Xine is capable of playing,
this is wrong; I can play files just fine.
--=20
Joe Wreschnig <wre...@um...>
|