
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Pytest does not show addClassCleanup errors Β· Issue #11728 Β· pytest-dev/pytest
Description:
a detailed description of the bug or problem you are having Below in minimal example is a code that if I run with python, I get Running test one .E ====================================================================== ERROR: tearDownCla...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Education
- Video & Online Content
Content Management System {π}
What CMS is github.com built with?
Github.com is powered by WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
pytest, errors, issue, unittest, def, sign, import, plugin, cleanup, test, error, class, added, mentioned, projects, lukasjerabek, raise, attributeerror, classmethod, millerdev, commit, references, verified, stanislavlevin, tests, check, urlpatterns, cleanups, navigation, code, pull, requests, actions, security, show, addclasscleanup, closed, description, minimal, run, python, traceback, tstpy, pluggy, happend, silently, pip, bluetech, related, integration,
Topics {βοΈ}
raise/print errors caught assigned labels plugin personal information pytest nclass cleanup error tests] cleanup order pytest shows error hookimpl def pytest_configure comment metadata assignees type projects traceback import print_exception projects milestone plugin module code bump pytest running test detailed description unittest related def patch_unittest_testcase_doclasscleanup file=sys pytest pytest-7 recent call 001s failed fail silently virtual environment pass silently check urlpatterns 0 mozillafoundation/foundation milestone relationships addclasscleanup testcase errors = cls python wrong happend pip list __name__ == '__main__' github clean_up_class tst unittest doclasscleanups num = len cleanups sometest errors=1 errors errors[ ====================================================================== error traceback py
Payment Methods {π}
- Braintree
Questions {β}
- @bluetech hi, may I ask how is this going?
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Pytest does not show addClassCleanup errors
articleBody:<!--
Thanks for submitting an issue!
Quick check-list while reporting bugs:
-->
- [x] a detailed description of the bug or problem you are having
Below in minimal example is a code that if I run with python, I get
```
Running test one
.E
======================================================================
ERROR: tearDownClass (__main__.SomeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tst.py", line 11, in clean_up_class
raise AttributeError
AttributeError
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
```
which is fine, but if I run it with pytest I get:
```
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/vagrant
collected 1 item
tst.py . [100%]
===================================================================================== 1 passed in 0.01s ======================================================================================
```
Without any sign of that an error has happend. Therefore it fail silently without anyone knowing something wrong happend.
Expected: Pytest shows error as well.
- [x] output of `pip list` from the virtual environment you are using
```
Package Version
-------------- -------
exceptiongroup 1.2.0
iniconfig 2.0.0
packaging 23.2
pip 23.3.2
pluggy 1.3.0
pytest 7.4.3
setuptools 56.0.0
tomli 2.0.1
```
- [x] pytest and operating system versions
pytest 7.4.3
Centos7
- [x] minimal example if possible
```
import unittest
class SomeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.addClassCleanup(cls.clean_up_class)
@classmethod
def clean_up_class(cls):
raise AttributeError
def test_one(self):
print("Running test one")
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()
```
author:
url:https://github.com/LukasJerabek
type:Person
name:LukasJerabek
datePublished:2023-12-20T16:54:25.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/11728/pytest/issues/11728
context:https://schema.org
headline:Pytest does not show addClassCleanup errors
articleBody:<!--
Thanks for submitting an issue!
Quick check-list while reporting bugs:
-->
- [x] a detailed description of the bug or problem you are having
Below in minimal example is a code that if I run with python, I get
```
Running test one
.E
======================================================================
ERROR: tearDownClass (__main__.SomeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tst.py", line 11, in clean_up_class
raise AttributeError
AttributeError
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
```
which is fine, but if I run it with pytest I get:
```
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/vagrant
collected 1 item
tst.py . [100%]
===================================================================================== 1 passed in 0.01s ======================================================================================
```
Without any sign of that an error has happend. Therefore it fail silently without anyone knowing something wrong happend.
Expected: Pytest shows error as well.
- [x] output of `pip list` from the virtual environment you are using
```
Package Version
-------------- -------
exceptiongroup 1.2.0
iniconfig 2.0.0
packaging 23.2
pip 23.3.2
pluggy 1.3.0
pytest 7.4.3
setuptools 56.0.0
tomli 2.0.1
```
- [x] pytest and operating system versions
pytest 7.4.3
Centos7
- [x] minimal example if possible
```
import unittest
class SomeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.addClassCleanup(cls.clean_up_class)
@classmethod
def clean_up_class(cls):
raise AttributeError
def test_one(self):
print("Running test one")
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()
```
author:
url:https://github.com/LukasJerabek
type:Person
name:LukasJerabek
datePublished:2023-12-20T16:54:25.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/11728/pytest/issues/11728
Person:
url:https://github.com/LukasJerabek
name:LukasJerabek
url:https://github.com/LukasJerabek
name:LukasJerabek
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:2
interactionType:https://schema.org/CommentAction
userInteractionCount:2
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Foundation
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net