py-vobject / vobject

A full-featured Python package for parsing and creating iCalendar and vCard files
http://py-vobject.github.io/
28 stars 7 forks source link

Cached tzinfo conflict in tests #73

Open rsb-23 opened 1 month ago

rsb-23 commented 1 month ago

Issue

Unit tests fail if we change the name of class as below:

class TestIcalendar(unittest.TestCase):
class TestAIcalendar(unittest.TestCase):

Reason

def test_pytz_timezone_serializing is changing the tzinfo for other tests.

Expectation

Testcases should not interfere with each other.

rsb-23 commented 4 weeks ago

[Unrelated] Few doctest failure on running pytest --doctest-modules.