add python 2/3 test
This commit is contained in:
12
files/pytest.py
Normal file
12
files/pytest.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
try:
|
||||
print("UID: ", os.getuid())
|
||||
my_generator = (letter for letter in 'abcdefg')
|
||||
next(my_generator)
|
||||
my_generator.next()
|
||||
print("It Works!")
|
||||
except:
|
||||
print("You Broke It")
|
||||
sys.exit(1)
|
Reference in New Issue
Block a user