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

Add python 3.13 to the test matrix #682

Merged
merged 2 commits into from
Mar 17, 2024
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
toxfactor: py3.12
ignore-typecheck-outcome: true
ignore-test-outcome: false
- python-version: "3.13-dev"
toxfactor: py3.13
ignore-typecheck-outcome: true
ignore-test-outcome: false

steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 6 additions & 6 deletions src/pytest_bdd/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def parse_feature(basedir: str, filename: str, encoding: str = "utf-8") -> Featu
return feature


@dataclass
@dataclass(eq=False)
class Feature:
scenarios: OrderedDict[str, ScenarioTemplate]
filename: str
Expand All @@ -214,7 +214,7 @@ class Feature:
description: str


@dataclass
@dataclass(eq=False)
class ScenarioTemplate:
"""A scenario template.

Expand Down Expand Up @@ -278,7 +278,7 @@ def description(self):
return "\n".join(self._description_lines)


@dataclass
@dataclass(eq=False)
class Scenario:
feature: Feature
name: str
Expand All @@ -288,7 +288,7 @@ class Scenario:
description: list[str] = field(default_factory=list)


@dataclass
@dataclass(eq=False)
class Step:
type: str
_name: str
Expand Down Expand Up @@ -365,7 +365,7 @@ def replacer(m: Match):
return STEP_PARAM_RE.sub(replacer, self.name)


@dataclass
@dataclass(eq=False)
class Background:
feature: Feature
line_number: int
Expand All @@ -377,7 +377,7 @@ def add_step(self, step: Step) -> None:
self.steps.append(step)


@dataclass
@dataclass(eq=False)
class Examples:
"""Example table."""

Expand Down
Loading