Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST_DATA_DIR for out-of-tree builds #63944

Open
tiran opened this issue Nov 24, 2013 · 3 comments
Open

TEST_DATA_DIR for out-of-tree builds #63944

tiran opened this issue Nov 24, 2013 · 3 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@tiran
Copy link
Member

tiran commented Nov 24, 2013

BPO 19745
Nosy @tiran, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2013-11-24.02:40:50.173>
labels = ['type-bug', 'tests']
title = 'TEST_DATA_DIR for out-of-tree builds'
updated_at = <Date 2021-12-07.16:25:34.093>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2021-12-07.16:25:34.093>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2013-11-24.02:40:50.173>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 19745
keywords = []
message_count = 3.0
messages = ['204166', '228404', '407948']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'iritkatriel']
pr_nums = []
priority = 'low'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue19745'
versions = ['Python 3.4', 'Python 3.5']

@tiran
Copy link
Member Author

tiran commented Nov 24, 2013

test.support declares a TEST_DATA_DIR directory inside the source tree of Python:

TEST_SUPPORT_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_HOME_DIR = os.path.dirname(TEST_SUPPORT_DIR)
TEST_DATA_DIR = os.path.join(TEST_HOME_DIR, "data")

make distclean cleans up the very same directory, see r87481. This feature doesn't cope will with out-of-tree builds with a read-only source directory. It looks like this feature isn't used by any test module. Can I remove it?

@tiran tiran added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Nov 24, 2013
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Oct 3, 2014

Can someone answer Christian's question please.

@iritkatriel
Copy link
Member

It does seem to be used here:

fn = os.path.join(TEST_DATA_DIR, filename)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants