Skip to content

Commit da2cf50

Browse files
committed
refactor(api-core): revert unrelated changes in noxfile and test_bidi
1 parent 06260e4 commit da2cf50

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/google-api-core/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def prerelease_deps(session):
350350
@nox.session(python=DEFAULT_PYTHON_VERSION)
351351
def core_deps_from_source(session):
352352
"""Run the test suite installing dependencies from source."""
353-
default(session, install_deps_from_source=True)
353+
default(session, prerelease=True)
354354

355355

356356
@nox.session(python=DEFAULT_PYTHON_VERSION)

packages/google-api-core/tests/unit/test_bidi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
except ImportError: # pragma: NO COVER
3232
pytest.skip("No GRPC", allow_module_level=True)
3333

34-
from google.api_core import bidi, exceptions
34+
from google.api_core import bidi
35+
from google.api_core import exceptions
3536

3637

3738
class Test_RequestQueueGenerator(object):
@@ -194,7 +195,7 @@ def test_delays_entry_attempts_above_threshold(self):
194195
# (NOTE: not using assert all(...), b/c the coverage check would complain)
195196
for i, entry in enumerate(entries):
196197
if i != 3:
197-
assert entry["reported_wait"] < 0.01
198+
assert entry["reported_wait"] == 0.0
198199

199200
# The delayed entry is expected to have been delayed for a significant
200201
# chunk of the full second, and the actual and reported delay times

0 commit comments

Comments
 (0)