File: test_local.py

package info (click to toggle)
python-moderngl 5.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,700 kB
  • sloc: python: 15,758; cpp: 14,665; makefile: 14
file content (8 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
import os
import moderngl


def test_local():
    path1 = os.path.normpath(os.path.dirname(os.path.dirname(moderngl.__file__)))
    path2 = os.path.normpath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
    assert path1.lower() == path2.lower(), 'Using installed moderngl'