Skip to content

Commit

Permalink
Added output of Python interpreter details at the start of the test d…
Browse files Browse the repository at this point in the history
…etails.
  • Loading branch information
ntoll committed Sep 10, 2024
1 parent f49b2a4 commit 089590b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ The output for the test suite for this module is a good example of all the
different sorts of information you may see:

```
Python interpreter: webassembly 3.4.0; MicroPython v1.24.0-preview.114.g77bd8fe5b on 2024-07-19
Using ./tests/conftest.py for global setup and teardown in ./tests.
Using local setup and teardown for ./tests/test_with_setup_teardown.py.
Found 2 test module[s]. Running 18 test[s].
Expand Down
1 change: 1 addition & 0 deletions upytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ async def run(*args, **kwargs):
setup and teardown functions can be overridden in the individual test
modules.
"""
print("Python interpreter: \033[1m", sys.platform, sys.version, "\033[0m")
targets = []
pattern = kwargs.get("pattern", "test_*.py")
for arg in args:
Expand Down

0 comments on commit 089590b

Please sign in to comment.