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/-/JgDS-n-CilYJ.
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.

Reply via email to