Skip to content

MAINT: Python2 Cleanups #15379

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

Merged
merged 1 commit into from
Jan 23, 2020
Merged

MAINT: Python2 Cleanups #15379

merged 1 commit into from
Jan 23, 2020

Conversation

sethtroisi
Copy link
Contributor

I pulled these changes out of #13852

@@ -341,24 +341,6 @@ def test_complex(self):
self._assert_func(x, x)
self._test_not_equal(x, y)

def test_error_message(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems silly to have the duplicate test, and the above test says "moved here" not "copied here".
"# 2018-04-29: moved here from testing.tests.test_utils."

I'll investigate history if I have time

@@ -155,7 +155,7 @@ def from_filename(cls, filename, namespace=None, encoding=None,
c = f.read()
if encoding:
c = c.decode(encoding)
elif PY3:
else:
c = c.decode('latin-1')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original CL this wasn't nested under "else:" but I believe that was a mistake

Traceback (most recent call last):
...
tempita.TemplateError: {{ inside expression at line 1 column 10
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trimmed a blank newline here

@sethtroisi
Copy link
Contributor Author

Close/Reopen to check of tests again.

@sethtroisi sethtroisi closed this Jan 22, 2020
@sethtroisi sethtroisi reopened this Jan 22, 2020
@mattip mattip merged commit 388e819 into numpy:master Jan 23, 2020
@sethtroisi sethtroisi deleted the misc_cleanups3 branch January 23, 2020 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants