Skip to content
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

Test output is polluted by TEST #246

Open
mtelka opened this issue Apr 18, 2023 · 2 comments
Open

Test output is polluted by TEST #246

mtelka opened this issue Apr 18, 2023 · 2 comments

Comments

@mtelka
Copy link

mtelka commented Apr 18, 2023

The test output is polluted by word TEST that should not be there:

py37: commands[0]> python tests/test_pyperclip.py
sssssssssssssssssssssssssss..sssssssssssssssssssssssssssssssssssssssssssss.........TEST.........sssssssss
----------------------------------------------------------------------
Ran 101 tests in 2.029s
@asweigart
Copy link
Owner

I'm guessing you're using Python 3.7, but what OS are you on? Can you tell me what function the copy() / paste() functions are set to? For example, when I run this code in the interactive shell I can see I'm using the init_windows_clipboard class:

>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.copy
<function init_windows_clipboard.<locals>.copy_windows at 0x000001C51641FE50>

@mtelka
Copy link
Author

mtelka commented May 4, 2023

The OS is OpenIndiana. The problem (extra TEST word) happens with both Python 3.7.16 and Python 3.9.16.

$ python3.7
Python 3.7.16 (default, Feb 19 2023, 23:28:22) 
[GCC 10.4.0] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.copy
<function init_xsel_clipboard.<locals>.copy_xsel at 0x7fffa3e10a70>
>>> 
$
$ python3.9
Python 3.9.16 (main, Feb 19 2023, 15:42:40) 
[GCC 10.4.0] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.copy
<function init_xsel_clipboard.<locals>.copy_xsel at 0x7fffad73aca0>
>>> 
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants