python-mygpoclient fails to build with Python 3.11.0a2. ====================================================================== ERROR: test_initSetsCorrectAttributes (mygpoclient.api_test.Test_EpisodeAction) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 102, in test_initSetsCorrectAttributes self.assertEquals(action.podcast, FEED_URL_1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_EpisodeAction' object has no attribute 'assertEquals' ====================================================================== ERROR: test_toDictionary_containsAllAttributes (mygpoclient.api_test.Test_EpisodeAction) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 172, in test_toDictionary_containsAllAttributes self.assertEquals(len(list(dictionary.keys())), 8) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_EpisodeAction' object has no attribute 'assertEquals' ====================================================================== ERROR: test_toDictionary_containsMandatoryAttributes (mygpoclient.api_test.Test_EpisodeAction) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 159, in test_toDictionary_containsMandatoryAttributes self.assertEquals(len(list(dictionary.keys())), 3) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_EpisodeAction' object has no attribute 'assertEquals' ====================================================================== ERROR: test_initSetsCorrectAttributes (mygpoclient.api_test.Test_EpisodeActionChanges) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 67, in test_initSetsCorrectAttributes self.assertEquals(changes.actions, self.ACTIONS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_EpisodeActionChanges' object has no attribute 'assertEquals' ====================================================================== ERROR: test_downloadEpisodeActions_returnsActionList (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 518, in test_downloadEpisodeActions_returnsActionList self.assertEquals(len(changes.actions), 2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getDevices_returnsDeviceList (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 593, in test_getDevices_returnsDeviceList self.assertEquals(len(devices), 2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getFavoriteEpisodes_returnsEpisodeList (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 627, in test_getFavoriteEpisodes_returnsEpisodeList self.assertEquals(len(favorites), 2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getSubscriptions_withPodcastDevice (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 245, in test_getSubscriptions_withPodcastDevice self.assertEquals(self.client.get_subscriptions(device), []) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_pullSubscriptions_returnsChangesListAndTimestamp (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 442, in test_pullSubscriptions_returnsChangesListAndTimestamp self.assertEquals(changes.add, [FEED_URL_1, FEED_URL_2]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_putSubscriptions_withPodcastDevice (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 251, in test_putSubscriptions_withPodcastDevice self.assertEquals(self.client.put_subscriptions(device, self.ADD), True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_updateDeviceSettings_withCaption (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 540, in test_updateDeviceSettings_withCaption self.assertEquals(result, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_updateDeviceSettings_withCaptionAndType (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 556, in test_updateDeviceSettings_withCaptionAndType self.assertEquals(result, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_updateDeviceSettings_withNothing (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 532, in test_updateDeviceSettings_withNothing self.assertEquals(result, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_updateDeviceSettings_withType (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 548, in test_updateDeviceSettings_withType self.assertEquals(result, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_updateSubscriptions_returnsUpdateResult (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 334, in test_updateSubscriptions_returnsUpdateResult self.assert_(hasattr(result, 'since')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assert_' ====================================================================== ERROR: test_uploadEpisodeActions_returnsTimestamp (mygpoclient.api_test.Test_MygPodderClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 469, in test_uploadEpisodeActions_returnsTimestamp self.assertEquals(result, self.SINCE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_MygPodderClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_initSetsCorrectAttributes (mygpoclient.api_test.Test_PodcastDevice) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 76, in test_initSetsCorrectAttributes self.assertEquals(device.device_id, DEVICE_ID_1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PodcastDevice' object has no attribute 'assertEquals' ====================================================================== ERROR: test_initSetsCorrectAttributes (mygpoclient.api_test.Test_SubscriptionChanges) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/api_test.py", line 52, in test_initSetsCorrectAttributes self.assertEquals(changes.add, self.ADD) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_SubscriptionChanges' object has no attribute 'assertEquals' ====================================================================== ERROR: test_parseResponse_emptyString_returnsNone (mygpoclient.json_test.Test_JsonClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/json_test.py", line 74, in test_parseResponse_emptyString_returnsNone self.assertEquals(client.GET(self.URI_BASE + '/'), None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_JsonClient' object has no attribute 'assertEquals' -------------------- >> begin captured stdout << --------------------- Called urllib.request.build_opener( <urllib.request.HTTPBasicAuthHandler object at 0x7f7edcd41280>, <urllib.request.HTTPCookieProcessor object at 0x7f7edcd41cc0>) --------------------- >> end captured stdout << ---------------------- ====================================================================== ERROR: test_parseResponse_worksWithDictionary (mygpoclient.json_test.Test_JsonClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/json_test.py", line 64, in test_parseResponse_worksWithDictionary self.assertEquals(items, [('a', 'B'), ('c', 'D')]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_JsonClient' object has no attribute 'assertEquals' -------------------- >> begin captured stdout << --------------------- Called urllib.request.build_opener( <urllib.request.HTTPBasicAuthHandler object at 0x7f7edcd41e00>, <urllib.request.HTTPCookieProcessor object at 0x7f7edcd426c0>) Called urllib.request.OpenerDirector.open( <mygpoclient.http.HttpRequest object at 0x7f7edcd41e00>) --------------------- >> end captured stdout << ---------------------- ====================================================================== ERROR: test_parseResponse_worksWithIntegerList (mygpoclient.json_test.Test_JsonClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/json_test.py", line 69, in test_parseResponse_worksWithIntegerList self.assertEquals(client.GET(self.URI_BASE + '/'), [1,2,3,6,7]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_JsonClient' object has no attribute 'assertEquals' -------------------- >> begin captured stdout << --------------------- Called urllib.request.build_opener( <urllib.request.HTTPBasicAuthHandler object at 0x7f7edcd41d80>, <urllib.request.HTTPCookieProcessor object at 0x7f7edcd42580>) --------------------- >> end captured stdout << ---------------------- ====================================================================== ERROR: Test locator creation with a host ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator_test.py", line 107, in test_create_with_host self.assertEquals(loc.toplist_uri(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_Exceptions' object has no attribute 'assertEquals' ====================================================================== ERROR: Test locator creation with a root URL instead of host ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator_test.py", line 95, in test_create_with_url self.assertEquals(loc.toplist_uri(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_Exceptions' object has no attribute 'assertEquals' ====================================================================== ERROR: Test locator creation with a root URL ending with a slash ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator_test.py", line 101, in test_create_with_url_slash self.assertEquals(loc.toplist_uri(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_Exceptions' object has no attribute 'assertEquals' ====================================================================== ERROR: Test that root_uri trivially works ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator_test.py", line 89, in test_root_uri self.assertEquals(self.locator.root_uri(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_Exceptions' object has no attribute 'assertEquals' ====================================================================== ERROR: Test that no device returns user subscriptions ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator_test.py", line 84, in test_subscriptions_uri_no_device self.assertEquals(self.locator.subscriptions_uri(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_Exceptions' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getEpisodeData (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 200, in test_getEpisodeData self.assertEquals(result, self.EPISODE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getPodcastData (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 194, in test_getPodcastData self.assertEquals(result, self.PODCAST) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getPodcastsOfATag (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 182, in test_getPodcastsOfATag self.assertEquals(result, self.SEARCHRESULT) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getTopTags (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 188, in test_getTopTags self.assertEquals(result, self.TOPTAGS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getToplist (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 170, in test_getToplist self.assertEquals(result, self.TOPLIST) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_searchPodcasts (mygpoclient.public_test.Test_PublicClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/public_test.py", line 176, in test_searchPodcasts self.assertEquals(result, self.SEARCHRESULT) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_PublicClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getSubscriptions (mygpoclient.simple_test.Test_SimpleClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/simple_test.py", line 93, in test_getSubscriptions self.assertEquals(subscriptions, self.SUBSCRIPTIONS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_SimpleClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_getSuggestions (mygpoclient.simple_test.Test_SimpleClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/simple_test.py", line 99, in test_getSuggestions self.assertEquals(suggestions, self.SUGGESTIONS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_SimpleClient' object has no attribute 'assertEquals' ====================================================================== ERROR: test_putSubscriptions (mygpoclient.simple_test.Test_SimpleClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mygpoclient-1.8/mygpoclient/simple_test.py", line 87, in test_putSubscriptions self.assertEquals(result, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Test_SimpleClient' object has no attribute 'assertEquals' /builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator.py:320: SyntaxWarning: "is" with a literal. Did you mean "=="? if type is 'device': /builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator.py:325: SyntaxWarning: "is" with a literal. Did you mean "=="? if type is 'podcast': /builddir/build/BUILD/mygpoclient-1.8/mygpoclient/locator.py:330: SyntaxWarning: "is" with a literal. Did you mean "=="? if type is 'episode': Name Stmts Miss Cover Missing ------------------------------------------------------- mygpoclient/__init__.py 13 0 100% mygpoclient/api.py 214 11 95% 217-218, 223-224, 421-422, 426-430 mygpoclient/feeds.py 68 44 35% 26-29, 42-44, 56-62, 69, 76, 83-84, 93-106, 113-115, 126-134, 142-152, 160-163, 170 mygpoclient/http.py 72 20 72% 23-26, 47-50, 105, 114, 134-142, 151, 155 mygpoclient/json.py 34 2 94% 27-29 mygpoclient/locator.py 115 3 97% 26-28, 79 mygpoclient/public.py 63 0 100% mygpoclient/simple.py 55 1 98% 168 mygpoclient/util.py 22 0 100% ------------------------------------------------------- TOTAL 656 81 88% ---------------------------------------------------------------------- Ran 118 tests in 0.758s FAILED (errors=35) Removed many old deprecated unittest features: TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf, failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5). Undocumented and broken TestCase method assertDictContainsSubset (deprecated in Python 3.2). Undocumented <unittest.TestLoader.loadTestsFromModule> TestLoader.loadTestsFromModule() parameter use_load_tests (deprecated and ignored since Python 3.2). An alias of the TextTestResult class: _TextTestResult (deprecated in Python 3.2). (Contributed by Serhiy Storchaka in bpo-45162.) https://bugs.python.org/issue45162 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02985235-python-mygpoclient/ For all our attempts to build python-mygpoclient with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-mygpoclient/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
Removal of unittest aliases was reverted in Python 3.11 and will be part of Python 3.12, so the above failure is not present anymore, thus I am closing this bugzilla. However, this will be needed next year though so I encourage you to communicate with the upstream about it.