apache / apache/beam

RuntimeWarning: Unable to load plugin beam_test_plugin when using nosetests

Open
#18,125 0 comments 0 reactions 0 assignees View on GitHub
bug core P3 python tests
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Tests pass, but when using nosetests, in this manner:
nosetests \--logging-level=INFO apache_beam/io/fileio_test.py:TestFileSink
the RuntimeWarnings shows up. It doesn't when using tox

$ nosetests \--logging-level=INFO apache_beam/io/fileio_test.py:TestFileSink
/Users/mariagh/Documents/venvs/no-dataflow/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin beam_test_plugin = test_config:BeamTestPlugin: No module named test_config

Imported from Jira [BEAM-1525](https://issues.apache.org/jira/browse/BEAM-1525). Original Jira may contain additional context.
Reported by: mariagh.

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning with nosetests on apache_beam/io/fileio_test.py:TestFileSink, then compare the setup used by tox. Inspect the nose plugin entry point test_config:BeamTestPlugin and the reported plugin-loading path. Done means the targeted test still passes without the RuntimeWarning when run with nosetests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.