Browse Source

Add test case for freeze.

pull/9921/head
Martin v. Löwis 12 years ago
parent
commit
80c09cfa49
  1. 2
      Misc/NEWS
  2. 10
      Tools/freeze/test/Makefile
  3. 2
      Tools/freeze/test/ok.py

2
Misc/NEWS

@ -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.

10
Tools/freeze/test/Makefile

@ -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

@ -0,0 +1,2 @@
import sys
sys.exit(0)
Loading…
Cancel
Save