Skip to content

Instantly share code, notes, and snippets.

@montefra
Created June 11, 2015 09:11
Show Gist options
  • Save montefra/894a4cfcd0550cec1d15 to your computer and use it in GitHub Desktop.
Save montefra/894a4cfcd0550cec1d15 to your computer and use it in GitHub Desktop.
run nosetest -vvvv with python 3, but without _dict and _lock global variables
nose.core: DEBUG: configured Config(addPaths=True, args=(), configSection='nosetests', debug=None, debugLog=None, env={}, exclude=None, files=[], firstPackageWins=False, getTestCaseNamesCompat=False, ignoreFiles=[re.compile('^\\.'), re.compile('^_'), re.compile('^setup\\.py$')], ignoreFilesDefaultStrings=['^\\.', '^_', '^setup\\.py$'], include=None, includeExe=False, logStream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, loggingConfig=None, options=<Values at 0x7f6ca37c39b0: {'logcapture_clear': False, 'noDeprecated': False, 'eval_attr': None, 'cover_branches': None, 'tissue_statistics': None, 'py3where': None, 'debugErrors': False, 'attr': None, 'enable_plugin_xunit': None, 'doctestFixtures': None, 'cover_html_dir': 'cover', 'where': None, 'debugFailures': False, 'testNames': None, 'tissue_repeat': None, 'enable_plugin_isolation': None, 'logcapture_level': 'NOTSET', 'failed': False, 'capture': True, 'version': False, 'addPaths': True, 'cover_inclusive': None, 'enable_plugin_coverage': None, 'xunit_file': 'nosetests.xml', 'cover_tests': None, 'testIdFile': '.noseids', 'cover_html': None, 'debugBoth': False, 'includeExe': False, 'cover_min_percentage': None, 'include': [], 'cover_erase': None, 'logcapture_format': '%(name)s: %(levelname)s: %(message)s', 'exclude': [], 'tissue_ignore': None, 'debug': None, 'showPlugins': False, 'firstPackageWins': False, 'byteCompile': True, 'tissue_select': None, 'doctest_tests': None, 'enable_plugin_allmodules': None, 'multiprocess_workers': 0, 'tissue_show_pep8': None, 'cover_xml': None, 'enable_plugin_id': None, 'doctest_result_var': None, 'tissue_packages': None, 'cover_xml_file': 'coverage.xml', 'doctestExtension': None, 'ignoreFiles': [], 'enable_plugin_doctest': None, 'tissue_show_source': None, 'xunit_testsuite_name': 'nosetests', 'doctestOptions': None, 'collect_only': None, 'noSkip': False, 'debugLog': None, 'files': None, 'logcapture_datefmt': None, 'tissue_fail_on_error': None, 'tissue_color': None, 'logcapture_filters': None, 'detailedErrors': None, 'cover_packages': None, 'tissue_inclusive': None, 'loggingConfig': None, 'multiprocess_restartworker': False, 'traverseNamespace': False, 'testMatch': '(?:^|[\\b_\\./-])[Tt]est', 'verbosity': 5, 'logcapture': True, 'stopOnError': False, 'enable_plugin_tissue': None, 'multiprocess_timeout': 10}>, parser=<optparse.OptionParser object at 0x7f6ca6745b38>, parserClass=<class 'optparse.OptionParser'>, plugins=<nose.plugins.manager.DefaultPluginManager object at 0x7f6ca67f9da0>, py3where=(), runOnInit=True, srcDirs=('lib', 'src'), stopOnError=False, stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, testMatch=re.compile('(?:^|[\\b_\\./-])[Tt]est'), testMatchPat='(?:^|[\\b_\\./-])[Tt]est', testNames=[], traverseNamespace=False, verbosity=5, where=(), worker=False, workingDir='/data01/montefra/HETDEX/Code/test/nose_manager')
nose.importer: DEBUG: Add path /data01/montefra/HETDEX/Code/test/nose_manager
nose.importer: DEBUG: insert /data01/montefra/HETDEX/Code/test/nose_manager into sys.path
nose.core: DEBUG: test loader is <nose.loader.TestLoader object at 0x7f6ca37c3a58>
nose.core: DEBUG: defaultTest .
nose.core: DEBUG: Test names are ['.']
nose.core: DEBUG: createTests called with None
nose.loader: DEBUG: load from . (None)
nose.selector: DEBUG: Test name . resolved to file ., module None, call None
nose.selector: DEBUG: Final resolution of test name .: file /data01/montefra/HETDEX/Code/test/nose_manager module None call None
nose.suite: DEBUG: Create suite for [<nose.suite.LazySuite tests=generator (140104576053712)>]
nose.suite: DEBUG: tests [<nose.suite.LazySuite tests=generator (140104576053712)>] context None
nose.suite: DEBUG: wrap [<nose.suite.LazySuite tests=generator (140104576053712)>]
nose.suite: DEBUG: wrapping <nose.suite.LazySuite tests=generator (140104576053712)>
nose.suite: DEBUG: Context suite for [<nose.suite.LazySuite tests=generator (140104576053712)>] (None) (140104576023856)
nose.core: DEBUG: runTests called
nose.suite: DEBUG: suite 140104576023856 (<nose.suite.ContextSuite context=None>) run called, tests: <generator object _get_wrapped_tests at 0x7f6ca37b8fc0>
nose.suite: DEBUG: suite 140104576023856 setUp called, tests: <generator object _get_wrapped_tests at 0x7f6ca37b8f78>
nose.suite: DEBUG: tests in 140104576023856?
nose.suite: DEBUG: precache is [<nose.suite.LazySuite tests=generator (140104576053712)>]
nose.suite: DEBUG: precache is []
nose.loader: DEBUG: load from dir /data01/montefra/HETDEX/Code/test/nose_manager
nose.importer: DEBUG: Add path /data01/montefra/HETDEX/Code/test/nose_manager
nose.selector: DEBUG: wantFile /data01/montefra/HETDEX/Code/test/nose_manager/file.txt? False
nose.selector: DEBUG: wantFile /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py? True
nose.loader: DEBUG: load from /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py (None)
nose.selector: DEBUG: Test name /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py resolved to file /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py, module None, call None
nose.selector: DEBUG: Final resolution of test name /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py: file /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py module test_hang call None
nose.importer: DEBUG: Import test_hang from /data01/montefra/HETDEX/Code/test/nose_manager
nose.importer: DEBUG: Add path /data01/montefra/HETDEX/Code/test/nose_manager
nose.importer: DEBUG: find module part test_hang (test_hang) in ['/data01/montefra/HETDEX/Code/test/nose_manager']
nose.loader: DEBUG: Load from module <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.selector: DEBUG: wantModule <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>? True
nose.selector: DEBUG: wantFunction <function foo at 0x7f6ca67be510>? None
nose.selector: DEBUG: wantFunction <function main at 0x7f6ca30aec80>? None
nose.selector: DEBUG: wantFunction <function test_main at 0x7f6ca30aebf8>? True
nose.suite: DEBUG: Create suite for <nose.suite.ContextList object at 0x7f6ca32e8160>
nose.suite: DEBUG: tests <nose.suite.ContextList object at 0x7f6ca32e8160> context <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.suite: DEBUG: Context suite for <nose.suite.ContextList object at 0x7f6ca32e8160> (<module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>) (140104570929448)
nose.suite: DEBUG: suite <nose.suite.ContextSuite context=test_hang> has context test_hang
nose.suite: DEBUG: get ancestry <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.suite: DEBUG: suite 140104570929448 (<nose.suite.ContextSuite context=test_hang>) run called, tests: <generator object _get_wrapped_tests at 0x7f6ca30aacf0>
nose.suite: DEBUG: suite 140104570929448 setUp called, tests: <generator object _get_wrapped_tests at 0x7f6ca30aacf0>
nose.suite: DEBUG: tests in 140104570929448?
nose.suite: DEBUG: ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'> may need setup
nose.suite: DEBUG: ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'> does need setup
nose.suite: DEBUG: <nose.suite.ContextSuite context=test_hang> setup context <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.suite: DEBUG: completed suite setup
nose.suite: DEBUG: precache is [test_hang.test_main]
test_hang.test_main ... ok
nose.suite: DEBUG: context teardown
nose.suite: DEBUG: ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'> may need teardown
nose.suite: DEBUG: <nose.suite.ContextSuite context=test_hang> setup ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.suite: DEBUG: <nose.suite.ContextSuite context=test_hang> teardown context <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'>
nose.suite: DEBUG: ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'> may need teardown
nose.suite: DEBUG: ancestor <module 'test_hang' from '/data01/montefra/HETDEX/Code/test/nose_manager/test_hang.py'> already torn down
nose.selector: DEBUG: wantFile /data01/montefra/HETDEX/Code/test/nose_manager/test_hang.pyc? False
nose.selector: DEBUG: wantFile /data01/montefra/HETDEX/Code/test/nose_manager/test_parser.pyc? False
nose.suite: DEBUG: context teardown
nose.suite: DEBUG: No reason to teardown (was_setup? False was_torndown? False)
----------------------------------------------------------------------
Ran 1 test in 0.009s
OK
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python3.4/multiprocessing/util.py", line 252, in _run_finalizers
finalizer()
File "/usr/lib/python3.4/multiprocessing/util.py", line 185, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.4/multiprocessing/managers.py", line 585, in _finalize_manager
conn = _Client(address, authkey=authkey)
File "/usr/lib/python3.4/multiprocessing/connection.py", line 501, in Client
answer_challenge(c, authkey)
File "/usr/lib/python3.4/multiprocessing/connection.py", line 742, in answer_challenge
message = connection.recv_bytes(256) # reject large message
File "/usr/lib/python3.4/multiprocessing/connection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
File "/usr/lib/python3.4/multiprocessing/connection.py", line 416, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.4/multiprocessing/connection.py", line 383, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment