Skip to content

tmpdir fixture: 'File name too long' #354

Closed

Description

@pytestbot

Originally reported by: pawel wilczynski (BitBucket: pwilczynski, GitHub: pwilczynski)


When using pytest.mark.parametrize tmpdir generates too long dir name what raises an OS error (depends on how long dir names system allows)

#!python

/tmp/pytest-5/test_bidon___bid_request____timestamp___2013_07_31_16_22_10___bidder_timeout_ms__104__members______id__164____member_ad_profile_id__151__tags______auction_id_64___3133474548355696153__size____728x90___sizes______728x90____smaller_sizes_allowed_____domain___sneakhype_com___inventory_audits______auditor_member_id___null__intended_audience___general___inventory_attributes___4_8_16___content_categories___21_8370_____userdata_json________segments__________0'

Plugins turned on:

  • pytest-pep8-1.0.4
  • pytest-django-2.3.0
  • pytest-cov-1.6
  • pytest-dbfixtures-0.3.5
  • pytest-cache-1.0
  • pytest-mozwebqa-1.1.1
  • pytest-twisted-1.4
  • pytest-ipdb-0.1-prerelease

Activity

  1. pytestbot commented on Oct 3, 2013

    @pytestbot
    ContributorAuthor

    Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


    fix issue354: avoid tmpdir fixture to create too long filenames especially
    when parametrization is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions