-
-
Notifications
You must be signed in to change notification settings - Fork 614
Fix python 3.10 @ ubuntu pytest ignore #685
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
Changes from all commits
fc53a58
d4353af
3f8cd3b
7a27b50
e64eeca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
"""Tests for circular imports in all local packages and modules. | ||
# -*- coding: utf-8 -*- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. Need to also deprecate I have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could have a |
||
""" | ||
proxy.py | ||
~~~~~~~~ | ||
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on | ||
Network monitoring, controls & Application development, testing, debugging. | ||
|
||
:copyright: (c) 2013-present by Abhinav Singh and contributors. | ||
:license: BSD, see LICENSE for more details. | ||
|
||
Tests for circular imports in all local packages and modules. | ||
|
||
This ensures all internal packages can be imported right away without | ||
any need to import some other module before doing so. | ||
This ensures all internal packages can be imported right away without | ||
any need to import some other module before doing so. | ||
|
||
This module is based on an idea that pytest uses for self-testing: | ||
* https://github.com/sanitizers/octomachinery/blob/be18b54/tests/circular_imports_test.py | ||
* https://github.com/pytest-dev/pytest/blob/d18c75b/testing/test_meta.py | ||
* https://twitter.com/codewithanthony/status/1229445110510735361 | ||
This module is based on an idea that pytest uses for self-testing: | ||
* https://github.com/sanitizers/octomachinery/blob/be18b54/tests/circular_imports_test.py | ||
* https://github.com/pytest-dev/pytest/blob/d18c75b/testing/test_meta.py | ||
* https://twitter.com/codewithanthony/status/1229445110510735361 | ||
""" | ||
from itertools import chain | ||
from pathlib import Path | ||
from types import ModuleType | ||
from typing import Generator, List | ||
|
||
import os | ||
import pkgutil | ||
import subprocess | ||
import sys | ||
|
||
import pytest | ||
|
||
import proxy | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why didn't you just delete these lines? Ideally, only
error
should remain.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally, I initially didn't delete coz I wasn't confident if this would work. Later i missed removing them altogether before merge. Will remove within
README
PR now :)