Add test case for freeze.

This commit is contained in:
Martin v. Löwis 2014-03-30 20:18:58 +02:00
parent e5bb551cc5
commit 80c09cfa49
3 changed files with 14 additions and 0 deletions

View file

@ -150,6 +150,8 @@ Documentation
Tests Tests
----- -----
- Add test case for freeze.
- Issue #20743: Fix a reference leak in test_tcl. - Issue #20743: Fix a reference leak in test_tcl.
- Issue #21097: Move test_namespace_pkgs into test_importlib. - Issue #21097: Move test_namespace_pkgs into test_importlib.

View file

@ -0,0 +1,10 @@
# Makefile to test freeze
# set PYTHON to path of Python interpreter to test
PYTHON=python
# set OUTDIR to the temp directory for freeze
OUTDIR=outdir
test:
$(PYTHON) ../freeze.py -o $(OUTDIR) ok.py
make -C $(OUTDIR)

2
Tools/freeze/test/ok.py Normal file
View file

@ -0,0 +1,2 @@
import sys
sys.exit(0)