Skip to content

Commit

Permalink
Add test case for freeze.
Browse files Browse the repository at this point in the history
  • Loading branch information
loewis committed Mar 30, 2014
1 parent e5bb551 commit 80c09cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,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.
Expand Down
10 changes: 10 additions & 0 deletions Tools/freeze/test/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions Tools/freeze/test/ok.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import sys
sys.exit(0)

0 comments on commit 80c09cf

Please sign in to comment.