Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3da9fbb

Browse files
committed
Add test case for freeze.
1 parent c00d39e commit 3da9fbb

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ Documentation
120120
Tests
121121
-----
122122

123+
- Add test case for freeze.
124+
123125
- Issue #20743: Fix a reference leak in test_tcl.
124126

125127
- Issue #21097: Move test_namespace_pkgs into test_importlib.

Tools/freeze/test/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Makefile to test freeze
2+
# set PYTHON to path of Python interpreter to test
3+
PYTHON=python
4+
# set OUTDIR to the temp directory for freeze
5+
OUTDIR=outdir
6+
7+
test:
8+
$(PYTHON) ../freeze.py -o $(OUTDIR) ok.py
9+
make -C $(OUTDIR)
10+
$(OUTDIR)/ok
11+

Tools/freeze/test/ok.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import sys
2+
sys.exit(0)

0 commit comments

Comments
 (0)