Skip to content

Commit 5f04671

Browse files
authored
Merge pull request #20 from rayokota/nox-3.13
Add 3.13 to nox
2 parents 79f56c4 + 42fa0a0 commit 5f04671

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
test:
1010
strategy:
1111
matrix:
12-
python: ['3.9', '3.10', '3.11', '3.12']
12+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
1313
platform: [ubuntu-latest, macos-latest, windows-latest]
1414
runs-on: ${{ matrix.platform }}
1515
steps:

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def build_and_check_dists(session):
3737
session.run("python", "-m", "twine", "check", "dist/*")
3838

3939

40-
@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
40+
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
4141
def tests(session):
4242
session.install("pytest")
4343
session.install("pytest-asyncio")

src/jsonata/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def safe_replace_first(s: str, pattern: re.Pattern, replacement: str) -> Optiona
722722
r = None
723723
for i in range(0, 10):
724724
try:
725-
r = re.sub(pattern, replacement, s, 1)
725+
r = re.sub(pattern, replacement, s, count=1)
726726
break
727727
except Exception as e:
728728
msg = str(e)

0 commit comments

Comments
 (0)