Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pytest-dev/pytest-asyncio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: da50ce5
Choose a base ref
...
head repository: pytest-dev/pytest-asyncio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f2fe98e
Choose a head ref
  • 11 commits
  • 11 files changed
  • 2 contributors

Commits on Apr 21, 2021

  1. Bump to 0.16.0

    Tinche committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    29a4265 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2021

  1. Adjusted Hypothesis integration test to use the same event loop initi…

    …alization as in the plugin.
    
    The plugin code creates a new event loop from the current event loop policy, whereas the fixture in the Hypothesis test uses get_event_loop. In Python 3.10 the use of get_event_loop was deprecated and causes the Hypothesis tests to fail.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    e3ec312 View commit details
    Browse the repository at this point in the history
  2. refactor: Removed TestUnexistingLoop.remove_loop fixture, because it …

    …has no effect.
    
    Under Python 3.10, the remove_loop fixture raises:
    "DeprecationWarning: There is no current event loop"
    This means that the remove_loop fixture effectively does nothing.
    
    The test case is still kept, because it seemingly aims to test that the "asyncio" marker works inside test classes when no "event_loop" fixture is explicitly specified.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    b27abe8 View commit details
    Browse the repository at this point in the history
  3. refactor: Grouped test cases together that are related to the use of …

    …the asyncio marker in class-based tests.
    
    Rephrased test names and comments to make the test intention more clear.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    70989fd View commit details
    Browse the repository at this point in the history
  4. refactor: Replaced tests asserting that the event loop is properly cl…

    …osed.
    
    Under Python 3.10, the tests raise:
    "DeprecationWarning: There is no current event loop"
    This means that the asyncio.get_event_loop does not return any existing loop. It creates a new loop as a side effect instead. Therefore, test_1 and test_3 will always be successful.
    
    However, it would be wrong to simply delete the tests without a replacement. Although, we cannot retrieve the default loop with get_event_loop, we can still retrieve it from the event loop policy. The new tests do exactly that and assert that the loop is a different object than in the tests before.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    2751982 View commit details
    Browse the repository at this point in the history
  5. refactor: test_async_fixtures_with_finalizer no longer trigger a Depr…

    …ecationWarning on Python 3.10.
    
    The code was adjusted to use asyncio.get_event_loop_policy().get_event_loop() rather than the deprecated asyncio.get_event_loop().
    Some additional comments were added to clarify the circumstances under which the test can fail.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    1c283bd View commit details
    Browse the repository at this point in the history
  6. build: Include Python 3.10 in Tox test runs.

    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    be3b327 View commit details
    Browse the repository at this point in the history
  7. ci: Include Python 3.10 in the CI test run.

    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    42ff5d1 View commit details
    Browse the repository at this point in the history
  8. feat: Add support for Python 3.10.

    Adjusted changelog and setup.py accordingly.
    
    Signed-off-by: Michael Seifert <[email protected]>
    seifertm authored and Tinche committed May 30, 2021
    Configuration menu
    Copy the full SHA
    6ec7647 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2021

  1. Configuration menu
    Copy the full SHA
    4e1df31 View commit details
    Browse the repository at this point in the history
  2. 0.16.0

    Tinche committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    f2fe98e View commit details
    Browse the repository at this point in the history
Loading