Skip to content

Commit

Permalink
chore: resurrect py35 cov + reformat w/ blue
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Nov 27, 2023
1 parent 742a0d1 commit 1695b83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ jobs:
run: tox -e ${{ matrix.toxenv }}

- name: Combine coverage
if: ${{ matrix.toxenv == 'py310' || matrix.toxenv == 'py310_sans_msgpack' }}
if: ${{ matrix.toxenv == 'py35' || matrix.toxenv == 'py310' || matrix.toxenv == 'py310_sans_msgpack' }}
run: |
coverage --version
coverage combine
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: ${{ matrix.toxenv == 'py310' || matrix.toxenv == 'py310_sans_msgpack' }}
if: ${{ matrix.toxenv == 'py35' || matrix.toxenv == 'py310' || matrix.toxenv == 'py310_sans_msgpack' }}
with:
env_vars: PYTHON
fail_ci_if_error: true
4 changes: 1 addition & 3 deletions falcon/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@

# PERF(kgriffs): Avoid superfluous namespace lookups
_strptime = datetime.datetime.strptime
_utcnow = functools.partial(
datetime.datetime.now, datetime.timezone.utc
)
_utcnow = functools.partial(datetime.datetime.now, datetime.timezone.utc)

# The above aliases were not underscored prior to Falcon 3.1.2.
strptime = deprecated(
Expand Down

0 comments on commit 1695b83

Please sign in to comment.