File: test_glutinit_0args.py

package info (click to toggle)
pyopengl 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,140 kB
  • sloc: python: 26,428; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/env python
"""Test that GLUT.glutInit accepts 0 arguments"""
from OpenGL import GLUT

if __name__ == "__main__":
    try:
        GLUT.glutInit()
    except Exception, err:
        raise
    else:
        print 'accepted 0 arguments, as desired'