punit 1.4.4__tar.gz → 1.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {punit-1.4.4 → punit-1.4.5}/.scripts/punit +0 -2
  2. {punit-1.4.4/src/pUnit.egg-info → punit-1.4.5}/PKG-INFO +1 -1
  3. {punit-1.4.4 → punit-1.4.5}/pyproject.toml +1 -1
  4. {punit-1.4.4 → punit-1.4.5/src/pUnit.egg-info}/PKG-INFO +1 -1
  5. {punit-1.4.4 → punit-1.4.5}/src/punit/__init__.py +2 -2
  6. {punit-1.4.4 → punit-1.4.5}/src/punit/__main__.py +5 -1
  7. {punit-1.4.4 → punit-1.4.5}/LICENSE +0 -0
  8. {punit-1.4.4 → punit-1.4.5}/README.md +0 -0
  9. {punit-1.4.4 → punit-1.4.5}/setup.cfg +0 -0
  10. {punit-1.4.4 → punit-1.4.5}/src/pUnit.egg-info/SOURCES.txt +0 -0
  11. {punit-1.4.4 → punit-1.4.5}/src/pUnit.egg-info/dependency_links.txt +0 -0
  12. {punit-1.4.4 → punit-1.4.5}/src/pUnit.egg-info/requires.txt +0 -0
  13. {punit-1.4.4 → punit-1.4.5}/src/pUnit.egg-info/top_level.txt +0 -0
  14. {punit-1.4.4 → punit-1.4.5}/src/punit/TestResult.py +0 -0
  15. {punit-1.4.4 → punit-1.4.5}/src/punit/assertions/__init__.py +0 -0
  16. {punit-1.4.4 → punit-1.4.5}/src/punit/assertions/collections.py +0 -0
  17. {punit-1.4.4 → punit-1.4.5}/src/punit/assertions/exceptions.py +0 -0
  18. {punit-1.4.4 → punit-1.4.5}/src/punit/assertions/strings.py +0 -0
  19. {punit-1.4.4 → punit-1.4.5}/src/punit/cli.py +0 -0
  20. {punit-1.4.4 → punit-1.4.5}/src/punit/discovery/TestModuleDiscovery.py +0 -0
  21. {punit-1.4.4 → punit-1.4.5}/src/punit/discovery/__init__.py +0 -0
  22. {punit-1.4.4 → punit-1.4.5}/src/punit/facts/Fact.py +0 -0
  23. {punit-1.4.4 → punit-1.4.5}/src/punit/facts/FactManager.py +0 -0
  24. {punit-1.4.4 → punit-1.4.5}/src/punit/facts/__init__.py +0 -0
  25. {punit-1.4.4 → punit-1.4.5}/src/punit/filters/Filter.py +0 -0
  26. {punit-1.4.4 → punit-1.4.5}/src/punit/filters/FilterManager.py +0 -0
  27. {punit-1.4.4 → punit-1.4.5}/src/punit/filters/__init__.py +0 -0
  28. {punit-1.4.4 → punit-1.4.5}/src/punit/metadata/CallableMetadata.py +0 -0
  29. {punit-1.4.4 → punit-1.4.5}/src/punit/metadata/__init__.py +0 -0
  30. {punit-1.4.4 → punit-1.4.5}/src/punit/py.typed +0 -0
  31. {punit-1.4.4 → punit-1.4.5}/src/punit/reports/HtmlReportGenerator.py +0 -0
  32. {punit-1.4.4 → punit-1.4.5}/src/punit/reports/JUnitReportGenerator.py +0 -0
  33. {punit-1.4.4 → punit-1.4.5}/src/punit/reports/JsonReportGenerator.py +0 -0
  34. {punit-1.4.4 → punit-1.4.5}/src/punit/reports/__init__.py +0 -0
  35. {punit-1.4.4 → punit-1.4.5}/src/punit/runner.py +0 -0
  36. {punit-1.4.4 → punit-1.4.5}/src/punit/theories/Theory.py +0 -0
  37. {punit-1.4.4 → punit-1.4.5}/src/punit/theories/TheoryManager.py +0 -0
  38. {punit-1.4.4 → punit-1.4.5}/src/punit/theories/__init__.py +0 -0
  39. {punit-1.4.4 → punit-1.4.5}/src/punit/traits/Trait.py +0 -0
  40. {punit-1.4.4 → punit-1.4.5}/src/punit/traits/TraitManager.py +0 -0
  41. {punit-1.4.4 → punit-1.4.5}/src/punit/traits/__init__.py +0 -0
@@ -4,6 +4,4 @@
4
4
  ##
5
5
  from subprocess import run
6
6
  from sys import executable, argv
7
- from os import _exit
8
7
  result = run([executable, "-m", "punit"] + argv[1:], check=False)
9
- _exit(result.returncode)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.4.4
3
+ Version: 1.4.5
4
4
  Summary: A modernized unit-test framework for Python.
5
5
  Author-email: Shaun Wilson <mrshaunwilson@msn.com>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pUnit"
3
- version = "1.4.4"
3
+ version = "1.4.5"
4
4
  description = "A modernized unit-test framework for Python."
5
5
  keywords = ["test", "unittest", "unit-test", "xUnit", "nUnit", "pytest"]
6
6
  authors = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.4.4
3
+ Version: 1.4.5
4
4
  Summary: A modernized unit-test framework for Python.
5
5
  Author-email: Shaun Wilson <mrshaunwilson@msn.com>
6
6
  License: MIT License
@@ -7,8 +7,8 @@ from .theories import *
7
7
  from .traits import *
8
8
 
9
9
 
10
- __version__ = '1.4.4'
11
- __commit__ = '9f70be4'
10
+ __version__ = '1.4.5'
11
+ __commit__ = '2a15202'
12
12
  __all__ = [
13
13
  '__version__', '__commit__',
14
14
  'assertions',
@@ -61,7 +61,11 @@ async def async_main() -> None:
61
61
  except (AttributeError, ValueError, OSError):
62
62
  # Pass if the stream doesn't support fsync (e.g. some virtualized environments)
63
63
  pass
64
- os._exit(119) # pragma: no cover
64
+ # when not a coverage, profiler, or debug run, then emit a non-zero exitcode;
65
+ # we EXITCODE for error handling in shell scripts/etc, which these edge cases
66
+ # do not benefit from.
67
+ if os.environ.get('COVERAGE_RUN') is None and sys.gettrace() is None and 'debugpy' not in sys.modules:
68
+ sys.exit(119) # pragma: no cover
65
69
 
66
70
 
67
71
  def main() -> None:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes