René's URL Explorer Experiment


Title: error running unittest · Issue #17 · ipython/rlipython · GitHub

Open Graph Title: error running unittest · Issue #17 · ipython/rlipython

X Title: error running unittest · Issue #17 · ipython/rlipython

Description: Running tests using unittest from the standard library gives an error about unrecognized arguments. I know this is supposed to be an unmaintained module, but I wonder if IPython already has a standard way of hiding ipython specific args....

Open Graph Description: Running tests using unittest from the standard library gives an error about unrecognized arguments. I know this is supposed to be an unmaintained module, but I wonder if IPython already has a stand...

X Description: Running tests using unittest from the standard library gives an error about unrecognized arguments. I know this is supposed to be an unmaintained module, but I wonder if IPython already has a stand...

Opengraph URL: https://github.com/ipython/rlipython/issues/17

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error running unittest","articleBody":"Running tests using `unittest` from the standard library gives an error about unrecognized arguments. I know this is supposed to be an unmaintained module, but I wonder if IPython already has a standard way of hiding ipython specific args.\r\n\r\nMaybe a little unusual to actually want to run unittest inside a repl, but the standard repl handles this without error.\r\n\r\nA minimal testcase shows the issue:\r\n\r\n```\r\n$ ipython --TerminalIPythonApp.interactive_shell_class=rlipython.TerminalInteractiveShell\r\nPython 3.6.1 (default, Apr  4 2017, 09:40:51)\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 6.0.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import unittest\r\n\r\nIn [2]: class IpythonTest(unittest.TestCase):\r\n   ...:     def test_test(self):\r\n   ...:         self.assertTrue(True)\r\n   ...:\r\n\r\nIn [3]: unittest.main()\r\nusage: ipython [-h] [-v] [-q] [--locals] [-f] [-c] [-b] [tests [tests ...]]\r\nipython: error: unrecognized arguments: --TerminalIPythonApp.interactive_shell_class=rlipython.TerminalInteractiveShell\r\nAn exception has occurred, use %tb to see the full traceback.\r\n\r\nSystemExit: 2\r\n\r\n/usr/local/lib/python3.6/site-packages/IPython/core/interactiveshell.py:2855: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.\r\n  warn(\"To exit: use 'exit', 'quit', or Ctrl-D.\", stacklevel=1)\r\n\r\nIn [4]: %tb\r\n---------------------------------------------------------------------------\r\nSystemExit                                Traceback (most recent call last)\r\n\u003cipython-input-3-7d361a096586\u003e in \u003cmodule\u003e()\r\n----\u003e 1 unittest.main()\r\n\r\n/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/main.py in __init__(\r\nself, module, defaultTest, argv, testRunner, testLoader, exit, verbosity, failfast, catchbreak, buffer, warnings, tb\r\n_locals)\r\n     91         self.testLoader = testLoader\r\n     92         self.progName = os.path.basename(argv[0])\r\n---\u003e 93         self.parseArgs(argv)\r\n     94         self.runTests()\r\n     95\r\n\r\n/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/main.py in parseArg$\r\n(self, argv)\r\n    124                 return\r\n    125         else:\r\n--\u003e 126             self._main_parser.parse_args(argv[1:], self)\r\n    127\r\n    128         if self.tests:\r\n\r\n/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/argparse.py in parse_args(se$\r\nf, args, namespace)\r\n   1731         if argv:\r\n   1732             msg = _('unrecognized arguments: %s')\r\n-\u003e 1733             self.error(msg % ' '.join(argv))\r\n   1734         return args\r\n   1735\r\n\r\n/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/argparse.py in error(self, m$\r\nssage)\r\n   2387         self.print_usage(_sys.stderr)\r\n   2388         args = {'prog': self.prog, 'message': message}\r\n-\u003e 2389         self.exit(2, _('%(prog)s: error: %(message)s\\n') % args)\r\n\r\n/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/argparse.py in exit(self, st$\r\ntus, message)\r\n   2374         if message:\r\n   2375             self._print_message(message, _sys.stderr)\r\n-\u003e 2376         _sys.exit(status)\r\n   2377\r\n   2378     def error(self, message):\r\n\r\nSystemExit: 2\r\n```\r\n\r\n\r\n\r\n\r\nFor reference, on vanilla IPython, the tests actually run but some noise complains at the end too:\r\n\r\n```\r\n$ ipython\r\nPython 3.6.1 (default, Apr  4 2017, 09:40:51)\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 6.0.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import unittest\r\n\r\nIn [2]: class IpythonTest(unittest.TestCase):\r\n   ...:     def test_test(self):\r\n   ...:         self.assertTrue(True)\r\n   ...:\r\n\r\nIn [3]: unittest.main()\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 0.000s\r\n\r\nOK\r\nAn exception has occurred, use %tb to see the full traceback.\r\n\r\nSystemExit: False\r\n\r\n/usr/local/lib/python3.6/site-packages/IPython/core/interactiveshell.py:2855: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.\r\n  warn(\"To exit: use 'exit', 'quit', or Ctrl-D.\", stacklevel=1)\r\n```","author":{"url":"https://github.com/yamad","@type":"Person","name":"yamad"},"datePublished":"2017-05-25T17:31:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17/rlipython/issues/17"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3681791b-abf2-b73f-49da-bbb117e6a086
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9922:2B9D1B:54D9C:73973:6A4D25FB
html-safe-noncef2809656d95dcbd271cdde514a6f0810f16041d90d17f5d40875b3278accf954
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTIyOjJCOUQxQjo1NEQ5Qzo3Mzk3Mzo2QTREMjVGQiIsInZpc2l0b3JfaWQiOiI0ODgyMDY2MzM2MTg2NzA1NDAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfe17b6724b609e298db019cd516918dd15bd7facb8a743829f2173f863254226
hovercard-subject-tagissue:231405802
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/rlipython/17/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fbc835aeac83efbdf84aa1744c59c0503b8f710a3eba617e23752a549d42b123/ipython/rlipython/issues/17
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fbc835aeac83efbdf84aa1744c59c0503b8f710a3eba617e23752a549d42b123/ipython/rlipython/issues/17
og:image:altRunning tests using unittest from the standard library gives an error about unrecognized arguments. I know this is supposed to be an unmaintained module, but I wonder if IPython already has a stand...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyamad
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
go-importgithub.com/ipython/rlipython git https://github.com/ipython/rlipython.git
octolytics-dimension-user_id230453
octolytics-dimension-user_loginipython
octolytics-dimension-repository_id83718292
octolytics-dimension-repository_nwoipython/rlipython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id83718292
octolytics-dimension-repository_network_root_nwoipython/rlipython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ipython/rlipython/issues/17#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipython%2Frlipython%2Fissues%2F17
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fipython%2Frlipython%2Fissues%2F17
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ipython%2Frlipython
Reloadhttps://github.com/ipython/rlipython/issues/17
Reloadhttps://github.com/ipython/rlipython/issues/17
Reloadhttps://github.com/ipython/rlipython/issues/17
Please reload this pagehttps://github.com/ipython/rlipython/issues/17
ipython https://github.com/ipython
rlipythonhttps://github.com/ipython/rlipython
Please reload this pagehttps://github.com/ipython/rlipython/issues/17
Notifications https://github.com/login?return_to=%2Fipython%2Frlipython
Fork 9 https://github.com/login?return_to=%2Fipython%2Frlipython
Star 32 https://github.com/login?return_to=%2Fipython%2Frlipython
Code https://github.com/ipython/rlipython
Issues 9 https://github.com/ipython/rlipython/issues
Pull requests 3 https://github.com/ipython/rlipython/pulls
Actions https://github.com/ipython/rlipython/actions
Projects https://github.com/ipython/rlipython/projects
Security and quality 0 https://github.com/ipython/rlipython/security
Insights https://github.com/ipython/rlipython/pulse
Code https://github.com/ipython/rlipython
Issues https://github.com/ipython/rlipython/issues
Pull requests https://github.com/ipython/rlipython/pulls
Actions https://github.com/ipython/rlipython/actions
Projects https://github.com/ipython/rlipython/projects
Security and quality https://github.com/ipython/rlipython/security
Insights https://github.com/ipython/rlipython/pulse
error running unittesthttps://github.com/ipython/rlipython/issues/17#top
https://github.com/yamad
yamadhttps://github.com/yamad
on May 25, 2017https://github.com/ipython/rlipython/issues/17#issue-231405802
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.