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

Fix up Python 3.8 loop argument warnings #246

Merged
merged 8 commits into from Apr 23, 2020

Commits on Apr 4, 2020

  1. Fix up Python 3.8 loop argument warnings

    * Remove all "loop=self.loop" expressions.
    
    * Rely on the currently running loop in the constructor of Queue.
    
    * Assuming that janus.Queue objects are created in the functions or
      coroutines called by the event loop, rewrite most test cases to
      be async.
    
      - No longer manage the event loop lifecycles by ourselves.
    
      - Adopt pytest-asyncio to seamlessly run test cases in an event loop.
    
    * Add missing .close() / .wait_closed() calls to the end of many test
      cases to ensure proper termination of the queues.
    
    * Insert asyncio.sleep(0) in the wait_closed() method so that all
      task-done callbacks for tasks spawned by _notify_async_not_empty(),
      _notify_async_not_full() internal methods are properly awaited.
      This eliminates hundreds of resource warnings after finishing the test
      suite.
    
    * Ensure dropping of Python 3.3/3.4 in CI configs.
    
    * Add Python 3.7 and 3.8 to CI configs.
    achimnol committed Apr 4, 2020
    Copy the full SHA
    a128bb0 View commit details
    Browse the repository at this point in the history
  2. Oops

    achimnol committed Apr 4, 2020
    Copy the full SHA
    3cce03d View commit details
    Browse the repository at this point in the history
  3. Let tox install pytest-asyncio

    * Remove PY_33/PY_35 conditional branches as we no longer support Python
      3.4 or older versions.
    achimnol committed Apr 4, 2020
    Copy the full SHA
    9608071 View commit details
    Browse the repository at this point in the history
  4. Update gitignore

    achimnol committed Apr 4, 2020
    Copy the full SHA
    f5c9b10 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    297082e View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    7f83f2a View commit details
    Browse the repository at this point in the history
  7. Fix too-long-line error

    achimnol committed Apr 4, 2020
    Copy the full SHA
    406b210 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2020

  1. Copy the full SHA
    dd1517a View commit details
    Browse the repository at this point in the history