python3 setup.py test failing
I just grabbed distribute_setup.py 0.6.14 and tried to run
$ python3 setup.py test
using Python 3.2, on the source code at
bzr branch lp:flufl.enum
I'm certain this used to work, but now after I see all the fixers run, I get
the following failure:
...
running egg_info
creating /home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info
writing /home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/PKG-INFO
writing namespace_packages to /home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/namespace_packages.txt
writing top-level names to /home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/top_level.txt
writing dependency_links to /home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/dependency_links.txt
writing manifest file '/home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/SOURCES.txt'
reading manifest file '/home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching '_build'
writing manifest file '/home/barry/projects/flufl/flufl.enum/build/lib/flufl.enum.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "setup.py", line 48, in <module>
convert_2to3_doctests=find_doctests(),
File "/usr/lib/python3.2/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "build/bdist.linux-x86_64/egg/setuptools/command/test.py", line 137, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/test.py", line 117, in with_project_on_sys_path
File "build/bdist.linux-x86_64/egg/setuptools/command/test.py", line 146, in run_tests
File "/usr/lib/python3.2/unittest/main.py", line 123, in __init__
self.parseArgs(argv)
File "/usr/lib/python3.2/unittest/main.py", line 191, in parseArgs
self.createTests()
File "/usr/lib/python3.2/unittest/main.py", line 198, in createTests
self.module)
File "/usr/lib/python3.2/unittest/loader.py", line 132, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python3.2/unittest/loader.py", line 132, in <listcomp>
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python3.2/unittest/loader.py", line 100, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'enum'
It's proving fairly difficult to debug, not the least of which because if I
run 'python3 setup.py test' again, I just get syntax errors on the doctest
because it's obviously not using the fixed .txt file:
======================================================================
FAIL: /home/barry/projects/flufl/flufl.enum/flufl/enum/docs/using.txt
Doctest: using.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.2/doctest.py", line 2113, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for using.txt
File "/home/barry/projects/flufl/flufl.enum/flufl/enum/docs/using.txt", line 0
----------------------------------------------------------------------
File "/home/barry/projects/flufl/flufl.enum/flufl/enum/docs/using.txt", line 70, in using.txt
Failed example:
print Colors.red
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.2/doctest.py", line 1248, in __run
compileflags, 1), test.globs)
File "
participants (1)
-
Barry Warsaw