Thanks for your report, this one was actually a bug and is now fixed in rev. c93c49607d21
On Mon, Jul 16, 2012 at 10:05 AM, PKHG <[email protected]> wrote: > will try your suggestion (removing eval) ;-) > > This then is the first test with errors > INFO Beginning test at Mon Jul 16 10:01:19 2012 > INFO Capabilities are: GENERIC, WIN > INFO sys.platform = win32 > INFO pyglet.version = 1.2alpha1 > INFO Reading test plan from tests\plan.txt > INFO Testing top.IMPORT. > INFO Begin unit tests for top.IMPORT > INFO 27 tests run > INFO Testing window.WINDOW_SET_MOUSE_SYSTEM_CURSOR. > INFO Begin unit tests for window.WINDOW_SET_MOUSE_SYSTEM_CURSOR > ERROR Error in window.WINDOW_SET_MOUSE_SYSTEM_CURSOR > > ERROR Traceback (most recent call last): > File "tests\..\tests\window\WINDOW_SET_MOUSE_SYSTEM_CURSOR.py", line 70, > in test_set_visible > w.close() > File "tests\..\pyglet\window\win32\__init__.py", line 290, in close > self.set_mouse_platform_visible(True) > File "tests\..\pyglet\window\win32\__init__.py", line 389, in > set_mouse_platform_visible > _user32.SetClassLongPtrW(self._view_hwnd, GCL_HCURSOR, cursor) > ctypes.ArgumentError: argument 3: <class 'TypeError'>: wrong type > > INFO 1 tests run > > others before it form hand about windows work nicely ... > > > Op zondag 15 juli 2012 17:03:30 UTC+2 schreef PKHG het volgende: >> >> Hallo, am on W32 Vista >> >> I used 2to3 on the test directory of pyglet-1.2alpha1 >> and now trying the test ;-) it starts to run >> BUT pyglet.1.log seems to report only errors >> The first one is this >> ERROR Failure in app.EVENT_LOOP >> ERROR Traceback (most recent call last): >> File "tests\..\tests\app\EVENT_LOOP.py", line 54, in test_1_5 >> self.t_scheduled(1, 5, 0) >> File "tests\..\tests\app\EVENT_LOOP.py", line 48, in t_scheduled >> pyglet.app.run() >> File "tests\..\pyglet\app\__init__.py", line 123, in run >> event_loop.run() >> File "tests\..\pyglet\app\base.py", line 135, in run >> self._run_estimated() >> File "tests\..\pyglet\app\base.py", line 164, in _run_estimated >> timeout = self.idle() >> File "tests\..\pyglet\app\base.py", line 273, in idle >> redraw_all = self.clock.call_scheduled_functions(dt) >> File "tests\..\pyglet\clock.py", line 309, in call_scheduled_functions >> item.func(ts - item.last_ts, *item.args, **item.kwargs) >> File "tests\..\tests\app\EVENT_LOOP.py", line 37, in f >> self.assertAlmostEqual(dt, interval, places=2) >> AssertionError: 1.0073020453716888 != 1 within 2 places >> >> though I think the difference is very small ;-) so I suppose the >> assertion commands should be adjusted a bit? >> >> These? >> self.assertAlmostEqual(dt, interval, places=2) >> self.assertAlmostEqual(t - self.last_t, interval, >> places=2) >> >> and another one: >> INFO 8 tests run >> INFO Testing graphics.GRAPHICS_ALLOCATION. >> INFO Begin unit tests for graphics.GRAPHICS_ALLOCATION >> INFO 23 tests run >> INFO Testing graphics.IMMEDIATE. >> INFO Begin unit tests for graphics.IMMEDIATE >> ERROR Failure in graphics.IMMEDIATE >> ERROR Traceback (most recent call last): >> File "tests\..\tests\graphics\IMMEDIATE.py", line 42, in test_v2f >> self.generic_test('v2f', v2f_data) >> File "tests\..\tests\graphics\IMMEDIATE.py", line 35, in generic_test >> self.check(v_data, vertices, n_v) >> File "tests\..\tests\graphics\IMMEDIATE.py", line 20, in check >> (e, r)) >> AssertionError: Feedback array is in error: 0.0, 0.0439453125 >> >> but more seriously I get this error stopping all further tests: >> Running Test: window.WINDOW_OPEN (9/135) >> >> Test that a window can be opened. >> >> Expected behaviour: >> One small window will be opened coloured purple. >> >> Close the window or press ESC to end the test. >> >> Press return to begin test... >> Traceback (most recent call last): >> File "tests\test.py", line 582, in <module> >> main() >> File "tests\test.py", line 576, in main >> component.test(options) >> File "tests\test.py", line 337, in test >> child.test(options) >> File "tests\test.py", line 337, in test >> child.test(options) >> File "tests\test.py", line 337, in test >> child.test(options) >> File "tests\test.py", line 280, in test >> eval(input('Press return to begin test...')) >> File "<string>", line 1 >> >> ^ >> SyntaxError: unexpected EOF while parsing >> >> Please comment ;-) >> Peter >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/pyglet-users/-/E_19-70aKT4J. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pyglet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
