File: test_accel_leak.py

package info (click to toggle)
pyopengl 3.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,216 kB
  • sloc: python: 80,468; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env python
# Test SF#2980896

def test_sf_2980896():
    from OpenGL.arrays import vbo
    import numpy as np

    data = np.arange(1000).astype(np.float32)
    for i in range(1000000): 
        new_vbo = vbo.VBO(data)
        # optional: new_vbo.delete

if __name__ == "__main__":
    test_sf_2980896()