Skip to content

Commit

Permalink
Fixing up some format strings in nox configs.
Browse files Browse the repository at this point in the history
Using `STRING_TEMPLATE % VARIABLE` can introduce hard-to-find bugs
if `VARIABLE` is expected to be a string but ends up being a tuple.
Instead of using percent formatting, just using `.format`.

Also making tweaks to `get_target_packages` to make some path
manipulation / checks OS-independent.
  • Loading branch information
dhermes committed Mar 27, 2017
1 parent b5227a8 commit a995d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-language/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def unit_tests(session, python_version):
"""Run the unit test suite."""

# Run unit tests against all supported versions of Python.
session.interpreter = 'python%s' % python_version
session.interpreter = 'python{}'.format(python_version)

# Install all test dependencies, then install this package in-place.
session.install('mock', 'pytest', 'pytest-cov', '../core/')
Expand All @@ -49,7 +49,7 @@ def system_tests(session, python_version):
return

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python%s' % python_version
session.interpreter = 'python{}'.format(python_version)

# Install all test dependencies, then install this package into the
# virutalenv's dist-packages.
Expand Down

0 comments on commit a995d9d

Please sign in to comment.