Add test case for freeze.

This commit is contained in:
Martin v. Löwis 2014-03-30 21:32:03 +02:00
parent c00d39e96a
commit 3da9fbbe83
3 changed files with 15 additions and 0 deletions

View file

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

View file

@ -0,0 +1,11 @@
# 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)
$(OUTDIR)/ok

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

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