Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Feb 8, 2018

What changes were proposed in this pull request?

This is a followup pr of #20487.

When importing module but it doesn't exists, the error message is slightly different between Python 2 and 3.

E.g., in Python 2:

No module named pandas

in Python 3:

No module named 'pandas'

So, one test to check an import error fails in Python 3 without pandas.

This pr fixes it.

How was this patch tested?

Tested manually in my local environment.

@ueshin
Copy link
Member Author

ueshin commented Feb 8, 2018

cc @HyukjinKwon

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

Nice catch!

@SparkQA
Copy link

SparkQA commented Feb 8, 2018

Test build #87181 has finished for PR 20538 at commit b716f2c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

HyukjinKwon pushed a commit to HyukjinKwon/spark that referenced this pull request Feb 8, 2018
## What changes were proposed in this pull request?

This is a followup pr of apache#20487.

When importing module but it doesn't exists, the error message is slightly different between Python 2 and 3.

E.g., in Python 2:

```
No module named pandas
```

in Python 3:

```
No module named 'pandas'
```

So, one test to check an import error fails in Python 3 without pandas.

This pr fixes it.

## How was this patch tested?

Tested manually in my local environment.

Author: Takuya UESHIN <ueshin@databricks.com>

Closes apache#20538 from ueshin/issues/SPARK-23319/fup1.
@asfgit asfgit closed this in a62f30d Feb 8, 2018
robert3005 pushed a commit to palantir/spark that referenced this pull request Feb 12, 2018
## What changes were proposed in this pull request?

This is a followup pr of apache#20487.

When importing module but it doesn't exists, the error message is slightly different between Python 2 and 3.

E.g., in Python 2:

```
No module named pandas
```

in Python 3:

```
No module named 'pandas'
```

So, one test to check an import error fails in Python 3 without pandas.

This pr fixes it.

## How was this patch tested?

Tested manually in my local environment.

Author: Takuya UESHIN <ueshin@databricks.com>

Closes apache#20538 from ueshin/issues/SPARK-23319/fup1.
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

Successfully merging this pull request may close these issues.

3 participants