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

[cleanup] Remove future imports from tests and utils #6050

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

timifasubaa
Copy link
Contributor

@timifasubaa timifasubaa commented Oct 6, 2018

Since we now no longer support python2, This PR starts taking out the future imports from tests and utils.
I will follow up with the same thing for other parts of the code base and also do the same for six and utf8.

@john-bodley @mistercrunch

@timifasubaa timifasubaa changed the title [cleanup] remove future imports [WIP] remove future imports Oct 6, 2018
@timifasubaa timifasubaa force-pushed the remove_future_imports branch 2 times, most recently from d644db7 to 5990431 Compare October 6, 2018 03:32
Copy link
Member

@john-bodley john-bodley left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. Note a future PR should probably remove the # -*- coding: utf-8 -*- line since UTF-8 is the default encoding in Python 3.

@@ -33,6 +28,8 @@ def emplace(metrics_dict, metric_name, is_postagg=False):
# Unit tests that can be run without initializing base tests
class DruidFuncTestCase(unittest.TestCase):

_multiprocess_can_split_ = True
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops

@timifasubaa timifasubaa changed the title [WIP] remove future imports [cleanup] remove future imports from tests and utils Oct 9, 2018
@timifasubaa timifasubaa changed the title [cleanup] remove future imports from tests and utils [cleanup] Remove future imports from tests and utils Oct 9, 2018
@codecov-io
Copy link

codecov-io commented Oct 9, 2018

Codecov Report

Merging #6050 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6050      +/-   ##
==========================================
- Coverage   77.81%   77.78%   -0.03%     
==========================================
  Files          46       46              
  Lines        9446     9434      -12     
==========================================
- Hits         7350     7338      -12     
  Misses       2096     2096
Impacted Files Coverage Δ
superset/data/__init__.py 99.08% <ø> (-0.01%) ⬇️
superset/utils.py 88.3% <ø> (-0.09%) ⬇️
superset/cli.py 52.75% <ø> (-0.86%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cc6fb6...e555d99. Read the comment docs.

@timifasubaa
Copy link
Contributor Author

PING

Copy link
Member

@john-bodley john-bodley left a comment

Choose a reason for hiding this comment

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

It looks like you removed these only from the tests. Surely there are more instances of these.

@timifasubaa
Copy link
Contributor Author

I chunked it into smaller pieces so it's easier to review. This PR only covers the tests. The other PRs cover the other parts.

@timifasubaa timifasubaa merged commit 5c5be82 into apache:master Oct 11, 2018
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants