This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_xpickle: compat tests: workaround for missing test_support
Type: behavior Stage: resolved
Components: Tests Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: collinwinter, eric.araujo, skrah
Priority: normal Keywords:

Created on 2010-05-14 10:55 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg105698 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-05-14 10:55
When the system python does not have the Lib/test directory, the
compat tests are failing.


======================================================================
ERROR: test_attribute_name_interning (test.test_xpickle.CPicklePython26Compat)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stefan/svn/trunk/Lib/test/pickletester.py", line 959, in test_attribute_name_interning
    s = self.dumps(x, proto)
  File "/home/stefan/svn/trunk/Lib/test/test_xpickle.py", line 114, in dumps
    return self.send_to_worker(self.python, arg, proto)
  File "/home/stefan/svn/trunk/Lib/test/test_xpickle.py", line 110, in send_to_worker
    raise RuntimeError(stderr)
RuntimeError: Traceback (most recent call last):
  File "/home/stefan/svn/trunk/Lib/test/test_xpickle.py", line 17, in <module>
    from test import test_support
ImportError: No module named test
msg105703 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-05-14 12:27
I don’t understand your installation. Do you have some parts of the test infrastructure but not test_support? Why?
msg105704 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-05-14 12:42
The compat tests check that pickling in the newly compiled Python
version is compatible with pickling in installed Python versions.

The installed versions may or may not have a test directory. For
example, the 2.6 port in OpenBSD does not have the test directory.
msg122604 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-28 02:37
I think this is a distro bug.  Debian for example does not ship tests but has test.__init__, regrtest and test_support.
msg122654 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-11-28 12:29
Right, Debian's solution is quite reasonable. Closing as wont_fix.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52956
2010-11-28 12:29:47skrahsetstatus: open -> closed
resolution: wont fix
messages: + msg122654

stage: resolved
2010-11-28 02:37:46eric.araujosetmessages: + msg122604
2010-05-14 12:42:23skrahsetmessages: + msg105704
2010-05-14 12:27:54eric.araujosetnosy: + eric.araujo
messages: + msg105703
2010-05-14 10:55:55skrahcreate