-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0: test suite is failing #365
Comments
This is the same issue as #337. Please use the workaround described there. |
See also #354 and the workaround I described there when you previously filed the issue. |
Just tested all comits from master and I see still two units failing + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-argcomplete-2.0.5-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-argcomplete-2.0.5-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' test/test.py
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/argcomplete-2.0.5, configfile: pyproject.toml
collected 148 items
test/test.py ...................................usage: pytest [-h] --foo FOO {bar}
pytest: error: too few arguments
usage: pytest [-h] --foo FOO {bar}
pytest: error: argument --foo is required
...usage: pytest foo [-h] {bar}
pytest foo: error: too few arguments
..x..............x...x.......................x...x..................F.x..xx..x........x.F....xs.......s.......
========================================================================================= FAILURES ==========================================================================================
_________________________________________________________________________________ TestTcsh.test_comp_point __________________________________________________________________________________
self = <test.test.TestTcsh testMethod=test_comp_point>
def test_comp_point(self):
# Use environment variable to change how prog behaves
> self.assertEqual(self.sh.run_command("export POINT=1"), "")
E AssertionError: 'export: Command not found.\r\n' != ''
E - export: Command not found.
test/test.py:1185: AssertionError
_________________________________________________________________________________ TestFish.test_comp_point __________________________________________________________________________________
self = <test.test.TestFish testMethod=test_comp_point>
def test_comp_point(self):
# Use environment variable to change how prog behaves
self.assertEqual(self.sh.run_command("export POINT=1"), "")
> self.assertEqual(self.sh.run_command("prog point hi\t"), "13\r\n")
E AssertionError: 'hi\r\n' != '13\r\n'
E - hi
E + 13
test/test.py:1186: AssertionError
================================================================================== short test summary info ==================================================================================
SKIPPED [2] test/test.py:1091: skip
XFAIL test/test.py::TestSplitLine::test_escaped_special_in_double_quotes - reason:
XFAIL test/test.py::TestBash::test_exclamation_in_double_quotes - reason:
XFAIL test/test.py::TestBash::test_parse_special_characters_dollar - reason:
XFAIL test/test.py::TestBashGlobal::test_exclamation_in_double_quotes - reason:
XFAIL test/test.py::TestBashGlobal::test_parse_special_characters_dollar - reason:
XFAIL test/test.py::TestTcsh::test_continuation - reason:
XFAIL test/test.py::TestTcsh::test_parse_special_characters - reason:
XFAIL test/test.py::TestTcsh::test_parse_special_characters_dollar - reason:
XFAIL test/test.py::TestTcsh::test_quoted_space - reason:
XFAIL test/test.py::TestTcsh::test_unquoted_space - reason:
XFAIL test/test.py::TestFish::test_parse_special_characters - reason:
FAILED test/test.py::TestTcsh::test_comp_point - AssertionError: 'export: Command not found.\r\n' != ''
FAILED test/test.py::TestFish::test_comp_point - AssertionError: 'hi\r\n' != '13\r\n'
============================================================= 2 failed, 133 passed, 2 skipped, 11 xfailed in 124.55s (0:02:04) ============================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w
Here is pytest output:
The same is when I'm runnnimg directly
python3 test/test.py
.The text was updated successfully, but these errors were encountered: