mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
Add two new tests
git-svn-id: http://svn.pyinstaller.org/trunk@636 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
import xml.etree.ElementTree
|
||||
from copy import copy, deepcopy
|
||||
import _elementtree
|
||||
import xml.etree.cElementTree
|
||||
print dir(xml.etree.cElementTree)
|
||||
"""
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
print "OK"
|
||||
@@ -0,0 +1,19 @@
|
||||
# -*- mode: python -*-
|
||||
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(HOMEPATH,'support/useUnicode.py'), 'test-celementtree.py'],
|
||||
pathex=['/home/rasky/src/pyinstaller/buildtests'])
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
exclude_binaries=1,
|
||||
name=os.path.join('build/pyi.linux2/test-celementtree', 'test-celementtree'),
|
||||
debug=True,
|
||||
strip=False,
|
||||
upx=False,
|
||||
console=1 )
|
||||
coll = COLLECT( exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=False,
|
||||
name=os.path.join('dist', 'test-celementtree'))
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (2,5):
|
||||
from email import utils
|
||||
from email.header import Header
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.nonmultipart import MIMENonMultipart
|
||||
else:
|
||||
print "test-email skipped"
|
||||
@@ -0,0 +1,19 @@
|
||||
# -*- mode: python -*-
|
||||
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(HOMEPATH,'support/useUnicode.py'), 'test-email.py'],
|
||||
pathex=['/home/rasky/src/pyinstaller/buildtests'])
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
exclude_binaries=1,
|
||||
name=os.path.join('build/pyi.linux2/test-email', 'test-email'),
|
||||
debug=False,
|
||||
strip=False,
|
||||
upx=False,
|
||||
console=1 )
|
||||
coll = COLLECT( exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=False,
|
||||
name=os.path.join('dist', 'test-email'))
|
||||
Reference in New Issue
Block a user