File: test_osx.py

package info (click to toggle)
pgzero 1.2.post4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,980 kB
  • sloc: python: 4,273; makefile: 165
file content (17 lines) | stat: -rw-r--r-- 935 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
# test_osx.py

# If on a Mac, launch with pgzrun, and check for correct process name:
# Without fix:
#   502 49953 21828   0 10:12pm ttys002    0:23.14 /Users/rcollin2/.virtualenvs/pgzero/bin/python /Users/rcollin2/.virtualenvs/pgzero/bin/pgzrun key_test.py
# With fix:
#
# $ ps -ef | grep -i pgzero | grep -i python
#   502 49953 21828   0 10:12pm ttys002    0:23.14 /Users/rcollin2/.virtualenvs/pgzero/bin/python /Users/rcollin2/.virtualenvs/pgzero/bin/pgzrun key_test.py
#
# $  ps -ef | grep -i pgzero | grep -i python
#   502 59772 21828   0 10:32pm ttys002    0:01.94 /Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS/Python -m pgzero key_test.py

# ps -ef | grep -i python | grep -iE 'pgzero | pgzrun'
#   502 59772 21828   0 10:32pm ttys002    4:23.73 /Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS/Python -m pgzero key_test.py