Author vstinner
Recipients ezio.melotti, michael.foord, rbcollins, serhiy.storchaka, vstinner
Date 2016-08-20.00:44:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471653895.53.0.999419716824.issue25746@psf.upfronthosting.co.za>
In-reply-to
Content
While checking that I didn't introduce a reference leak recently with my changes around _PyObject_FastCall(), I found the same issue: test_unittest doesn't work with regrtest -R.

I get the same error:

$ ./python -m test -R 0:1 -v test_unittest
======================================================================
ERROR: test_discover_with_init_module_that_raises_SkipTest_on_import (unittest.test.test_discovery.TestDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/unittest/test/test_discovery.py", line 572, in test_discover_with_init_module_that_raises_SkipTest_on_import
    pickle.loads(pickle.dumps(suite, proto))
_pickle.PicklingError: Can't pickle <class 'unittest.loader.ModuleSkipped'>: attribute lookup ModuleSkipped on unittest.loader failed

======================================================================
ERROR: test_discover_with_module_that_raises_SkipTest_on_import (unittest.test.test_discovery.TestDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/haypo/prog/python/default/Lib/unittest/test/test_discovery.py", line 548, in test_discover_with_module_that_raises_SkipTest_on_import
    pickle.loads(pickle.dumps(suite, proto))
_pickle.PicklingError: Can't pickle <class 'unittest.loader.ModuleSkipped'>: attribute lookup ModuleSkipped on unittest.loader failed

----------------------------------------------------------------------
History
Date User Action Args
2016-08-20 00:44:55vstinnersetrecipients: + vstinner, rbcollins, ezio.melotti, michael.foord, serhiy.storchaka
2016-08-20 00:44:55vstinnersetmessageid: <1471653895.53.0.999419716824.issue25746@psf.upfronthosting.co.za>
2016-08-20 00:44:55vstinnerlinkissue25746 messages
2016-08-20 00:44:55vstinnercreate