Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
import re
import subprocess
import sys
import sysconfig


class EmbeddingTestsMixin:
def setUp(self):
here = os.path.abspath(__file__)
basepath = os.path.dirname(os.path.dirname(os.path.dirname(here)))
if not sysconfig.is_python_build():
self.skipTest('testing installed tree')

basepath = sysconfig._PROJECT_BASE

exename = "_testembed"
if sys.platform.startswith("win"):
ext = ("_d" if "_d" in sys.executable else "") + ".exe"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure that test.test_embed works when building outside of the source tree